YouTube New LogoI have received a request from someone that wants even more from my WordPress Custom Fields Plugin. He has a category called “videos” which has posts with YouTube videos embedded with some plugin. He wants to put the videos thumbnail as the post’s thumbnail.

First, how is the video embedded in the post? It uses the following syntax:

Now you can embed it like you would normally do.

Second, how do we get the thumbnail itself after we extracted the video key? We build the image’s URL with the following syntax:

Now, how do we put all of this together into a plugin that inserts the thumbnails?
You don’t have to because I have already done it for you.

This plugin runs through the posts in your blog and if it finds a YouTube video embedded in a post it sets the thumbnail to be the video’s thumbnail.
That’s it, have fun playing with the configuration.

If you encounter any issues please comment/contact me.

Search terms:

13 Responses to YouTube Thumbnailer

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting