Plugin Directory

Video Thumbnails

Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.

My theme isn't showing thumbnails, what's wrong?

The most likely problem is that your theme doesn't support post thumbnails. If thumbnails are supported, you should see a box titled "Featured Image" on the edit post page. If thumbnails aren't supported, your theme will have to be modified to support Featured Images or to support one of our custom functions.

How can I use Video Thumbnails if I use a custom field to store the video?

On the Video Thumbnails settings page just enter the name of the custom field and the plugin will scan it.

Can I use the functions outside of a loop?

Yes, but be sure to include the post ID as a parameter. For example: <?php $thumbnail = get_video_thumbnail(25); ?>

My video service/embedding plugin isn't included, can you add it?

If the service allows a way to retrieve thumbnails, I'll do my best to add it.

How do I use this plugin with custom post types?

The settings page includes a checklist of all your post types so you can pick and choose.

I am editing my theme and only want to display a thumbnail if one is found. How do I do this?

<?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { echo "<img src='" . $video_thumbnail . "' />"; } ?>

will only display a thumbnail when one exists, but I recommend using the Featured Image setting and the_post_thumbnail template tag.

I edited my theme and now I'm getting huge thumbnails, how can I resize them?

The best solution is to use the Featured Image setting and the_post_thumbnail template tag.

As an alternative you could assign a class to the element and style it with CSS.

I edited my theme and now I'm seeing the thumbnail and the video, how do I only display the thumbnail?

Every theme is different, so this can be tricky if you aren't familiar with WordPress theme development. You need to edit your template in the appropriate place, replacing <?php the_content(); > with <?php the_excerpt(); > so that only an excerpt of the post is shown on the home page or wherever you would like to display the video thumbnail.

Why are there black bars on some YouTube thumbnails?

This is an unfortunate side effect of some old YouTube videos not having widescreen thumbnails. As of version 2.0, the plugin checks for HD thumbnails so this issue should be less common.

Why did it stop finding thumbnails for Vimeo?

The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try again after a few hours.

Requires: 3.1 or higher
Compatible up to: 3.5.1
Last Updated: 2013-5-13
Downloads: 109,407

Ratings

4 stars
4.8 out of 5 stars

Support

6 of 17 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,2,2
100,1,1 100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,2,2 100,5,5 100,1,1
67,3,2
100,1,1 100,2,2
100,1,1
100,2,2 100,5,5 100,4,4
67,3,2 100,2,2
67,9,6 88,8,7 100,4,4
80,10,8
100,1,1
33,9,3
50,2,1 67,6,4
100,6,6 100,1,1 100,1,1 100,1,1