[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/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Automatic Youtube Video Posts Plugin] Thumbnails Problems’ is closed to new replies.