Change the default video URL in a post to shortcode format

To render the shortcode output with a clickable link while it still looks like a shortcode, you have to replace the built-in shortcode: add_shortcode( ‘video’, ‘wpse_96840_literal_video’ ); function wpse_96840_literal_video( $atts ) { $url = $atts[‘url’]; return ‘<code>’ . sprintf( ”, $url ) . ‘</code>’; } Result

Changing permalink of custom category

It seems that a few people create a custom function to filter in custom taxonomy names into post_type_link. This post provides a simple approach to problem: Mixing custom post type and taxonomy rewrite structures?

Latest news mini images

As mentioned above, this link can help you on your way: http://codex.wordpress.org/Post_Thumbnails You need to add thumnail sizes to your functions.php like: the_post_thumbnail(); // without parameter -> Thumbnail the_post_thumbnail(‘thumbnail’); // Thumbnail (default 150px x 150px max) the_post_thumbnail(‘medium’); // Medium resolution (default 300px x 300px max) the_post_thumbnail(‘large’); // Large resolution (default 640px x 640px max) the_post_thumbnail(‘full’); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)