• I tried else statement but it’s removing the post content except for the header.

    <?php
    if ( wt_get_option( ‘wt_show_post_img’ ) == 1 ){
    if (has_post_thumbnail() ) { ?>
    <div class=”thumbnail single-post-thumbnail”><?php the_post_thumbnail( ‘wt840_420’ ); ?></div><?php
    }

    } ?>

    Can you help me?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove div to conserve space if no thumbnail/featured image’ is closed to new replies.