Automatic Youtube Video Posts Plugin
Thumbnails Problems (3 posts)

  1. thomaswales
    Posted 3 years ago #

    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.

    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 } ?>


  2. thomaswales
    Posted 3 years ago #

    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.

  3. ternstyle
    Plugin Author

    Posted 3 years ago #

    Have you tried using the built-in WordPress function the_post_thumbnail?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Automatic Youtube Video Posts Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.