• Hi, I am trying to add different div’s around either the featured image or video. Below is the code I am using but this does not seem to be working… any ideas?

    <?php
    if ( has_post_thumbnail() ) {
    	echo '<div class="ft-img">';
    	echo get_the_post_thumbnail( $post->ID, 'full' );
    	echo '</div>';
    }
    elseif ( has_post_video() ) {
    	echo '<div class="ft-vid">';
    	echo get_the_post_video( $post->ID, 'full' );
    	echo '</div>';
    }
    ?>

    https://ww.wp.xz.cn/plugins/featured-video-plus/

Viewing 1 replies (of 1 total)
  • Plugin Author Alex

    (@ahoereth)

    THe plugin does not manipulate stuff outside of the featured image/video. This probably is not a support question related to the plugin – does echo at this code location do anything at all?

Viewing 1 replies (of 1 total)

The topic ‘Add div's’ is closed to new replies.