Display youtube player instead of featured image
-
Hello and thank you for the wonderful work you have done.
I am trying to display a youtube player on the index pages instead of the featured image/theme video thumb. Previously I was using the code below (in content.php) to display the youtube player for a specific category but after I upgraded my theme/wp it no longer worked:
<?php if ( in_category( ‘reviews’ ) ): ?>
<?php get_template_part(‘inc/post-formats’); ?>
<?php else : ?>https://flight303.com/category/reviews/
please let me know if anything has changed relating to this functionality. Also I am using a child theme of hueman but since it working for normal videos and not for the “reviews” category, I figure the child theme is not the issue.
Thank you,
Abe
- The topic ‘Display youtube player instead of featured image’ is closed to new replies.