• Resolved candishidalgo

    (@candishidalgo)


    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!

Viewing 2 replies - 16 through 17 (of 17 total)
  • LesTexas60

    (@lestexas60)

    @candishidalgo, so many people tried to help you and yet when you ‘found a workaround” you didn’t post it to show a possible solution to this problem..You might think about helping other people that read this thread with the same type problems.

    Thread Starter candishidalgo

    (@candishidalgo)

    Hi @lestexas60 – This project was from nearly a year ago and I don’t remember what the specific workaround was. Also @runningdeveloper answered my problem within days of my original post, and others came in afterwards (months later) with different questions, all of which were answered (or attempted to be answered) by others.

    To your point, I probably should have posted the details of the workaround when I did it so it would have been more helpful for others viewing this thread. I honestly didn’t even think about it at the time, and now can’t remember. I’ll keep it in mind next time.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Remove Featured Image From Appearing Inside Post’ is closed to new replies.