I try to use set the post thumbnail and the video at the same time inside my theme. The problem is the video doesn´t show, how should I do it?
firt show the post thumbnail:
<?php the_post_thumbnail('single', array('itemprop' => 'image')); ?>
then I use this code for the video but don´t work:
<?php the_post_video($post->ID,'single'); ?>
How can I do it if I want to use the post thumbnail apart of the video?
- The topic ‘Use post video & post thumbnail inside the Theme’ is closed to new replies.