Title: [Plugin: Automatic Youtube Video Posts Plugin] Thumbnails Problems
Last modified: August 20, 2016

---

# [Plugin: Automatic Youtube Video Posts Plugin] Thumbnails Problems

 *  [thomaswales](https://wordpress.org/support/users/thomaswales/)
 * (@thomaswales)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-automatic-youtube-video-posts-plugin-thumbnails-problems/)
 * Hello WordPress gang,
 * Wondering if you could help me with abit of coding, I want the Thumbnails of 
   the Youtube videos this plugin generates to be the ‘Featured Image’.
 * I am been messing around with the code but unable to get it to work.
 * Please bear in mind I would like normal articles to have their Featured Image,
   and YouTube Video posts to have there.
 * Is this possible? I pasted in the code below.
 *     ```
       <?php
       if ( has_post_thumbnail() ) { ?>
       	<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=150&w=200&zc=1" alt=""/></a>
       <?php } else { ?>
       	<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
       <?php } ?>
       ```
   
 * [http://wordpress.org/extend/plugins/automatic-youtube-video-posts/](http://wordpress.org/extend/plugins/automatic-youtube-video-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [thomaswales](https://wordpress.org/support/users/thomaswales/)
 * (@thomaswales)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-automatic-youtube-video-posts-plugin-thumbnails-problems/#post-3064275)
 * Can anyone help me? This is for a charity website 🙁 and it would save alot of
   time and effort if this just worked.
 * I’m sure its easy enough to code, but can;t figure it out.
 *  Plugin Author [ternstyle](https://wordpress.org/support/users/mpraetzel/)
 * (@mpraetzel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-automatic-youtube-video-posts-plugin-thumbnails-problems/#post-3064655)
 * Have you tried using the built-in WordPress function `the_post_thumbnail`?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Automatic Youtube Video Posts Plugin] Thumbnails Problems’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/automatic-youtube-video-posts_e39595.
   svg)
 * [Automatic Youtube Video Posts Plugin](https://wordpress.org/plugins/automatic-youtube-video-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-youtube-video-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-youtube-video-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-youtube-video-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ternstyle](https://wordpress.org/support/users/mpraetzel/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-automatic-youtube-video-posts-plugin-thumbnails-problems/#post-3064655)
 * Status: not resolved