How to link to YouTube videos with thumbnails?

Here is a list of some popular video grid plugins you can use without custom coding. You can create a grid of YouTube thumbnails that link to those videos. Gallery by Robo – Responsive Photo Image Gallery YouTube Gallery – Best YouTube Video Gallery for WordPress YourChannel: YouTube channel on your website Good luck!

Detect if image file is a thumbnail

You need to know your site’s current thumbnail dimension settings in order for you to detect if the $url is of thumbnail size. $thumbnail_width = get_option( ‘thumbnail_size_w’ ); $thumbnail_height = get_option( ‘thumbnail_size_h’ ); // The do detection // Assuming you have the image $url $pattern = ‘%’ . $thumbnail_width . ‘x’ . $thumbnail_height . ‘%’; … Read more

Removing Title Tag from Thumbnails

This filter will remove it completely from all images, you can add a conditional to only effect certain images. function remove_img_title($atts) { unset($atts[‘title’]); return $atts; } add_filter(‘wp_get_attachment_image_attributes’,’remove_img_title’); Instead if you want to use <?php the_post_thumbnail( ‘category-thumb’ ); ?> You can pass it an empty title using the second $attr so your title tag will look … Read more

How can i place Feature Image under title field in wp-admin?

Super late to the party, but well… If you want to show your featured image right under the Post title in your Admin area, use this piece of code in your functions.php : add_action(‘do_meta_boxes’, ‘my_cpt_move_meta_box’); function my_cpt_move_meta_box(){ remove_meta_box( ‘postimagediv’, ‘post_type’, ‘side’ ); add_meta_box(‘postimagediv’, __(‘custom name’), ‘post_thumbnail_meta_box’, ‘post_type’, ‘normal’, ‘high’); } Be sure to change post_type … Read more

Thumbnail is corrupt but image is good

You may need to reset the thumbnail settings in your media settings, then regenerate the thumbnail; either: use Regenerate Thumbnails plugin to rebuild all thumbnails; or edit image / rotate it left / rotate it right (back to original) / save image

image thumbnail in RSS Feed

If you are using the native RSS feeds then the post thumbnail can be added by a filter hook: function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content=”” . get_the_post_thumbnail( $post->ID, ‘thumbnail’, array( ‘alt’ => get_the_title(), ‘title’ => get_the_title(), ‘style’ => ‘float:right;’ ) ) . ” . $content; } return $content; } … Read more