Remove Featured Image From Appearing Inside Post
-
Featured image is needed for homepage, but I don’t want it to show inside the actual post.
I’ve read to remove <?php if( has_post_thumbnail() ) : ?> from single.php, but this code does not exist in my single.php file.
Here is the code for my single.php:
<?php get_header(); ?>
<div id=”content” class=”grid_10 <?php echo of_get_option(‘blog_sidebar_pos’) ?>”>
<?php
if (have_posts()) : while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
get_template_part( ‘includes/post-formats/’.$format );if($format == ”)
get_template_part( ‘includes/post-formats/standard’ ); ?><?php get_template_part( ‘includes/post-formats/related-posts’ ); ?>
<?php comments_template(”, true); ?>
<?php endwhile; endif; ?>
</div><!–#content–>
<?php get_sidebar(); ?>
<?php get_footer(); ?>Any ideas on how to accomplish this? Thanks for any help!
- The topic ‘Remove Featured Image From Appearing Inside Post’ is closed to new replies.