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! Quote 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(); } Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.