bbizzl Posted May 4, 2011 Share Posted May 4, 2011 I have a video feed from two different sources. One being You Tube. I am having trouble integrating both into my code. Each works fine alone. Here is my code. Would like to display image based on feed source. either <?php print_video_thumb($post) ?> or <?php tern_wp_youtube_image(); ?> <div class="paneleft"><?php print_video_thumb($post) ?><?php tern_wp_youtube_image(); ?></div> Thanks For The Help! Link to comment https://forums.phpfreaks.com/topic/235542-displaying-two-different-imges-depending-on-post-type/ Share on other sites More sharing options...
efficacious Posted May 4, 2011 Share Posted May 4, 2011 well you have to first check which source is needed and then print accordingly... if(thisSource) { print_video_thumb($post) } else { tern_wp_youtube_image(); } Link to comment https://forums.phpfreaks.com/topic/235542-displaying-two-different-imges-depending-on-post-type/#findComment-1210550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.