• Hello,
    I need a conditional statement that remove the featured image from a post when video meta box have video in it.
    I’m using this plugin https://www.ads-software.com/plugins/video-metabox/
    and my code from single.php is:

    <?php 
    
    						if ( (has_post_thumbnail()) && ! in_category('38') && (get_theme_mod( 'hide_feature_image' ) != true)) : ?>
    
    							<div class="post-feature-image">
    
    								<?php the_post_thumbnail('medium', array('alt' => esc_attr(get_the_title()), 'title' => esc_attr(get_the_title()) )); ?>
    
    							</div>
    
    						<?php endif; ?>

    How can that be achieve?
    Thanks.

  • The topic ‘Conditional video meta box’ is closed to new replies.