0

When I'm on the main page, of my site, site.com it shows an excerpt of each post along with a category to the side. it also displays the same thumbnail image but above the content and I'm guessing because its grabbing the first image in the post.. I already tried removing <?php the_post_thumbnail();?> from the single.php and it didnt help.

How do I stop any additional images from displaying on the homepage?

  • 2
    do you use a static page as your homepage? either way, please post the code that displays your main page. – fischi Nov 13 '12 at 13:29
2

WordPress will never use single.php to render the site front page. Refer to the Template Hierarchy for Site Front Page:

  • front-page.php
  • Static page hierarchy: $custom-template.php, page-$slug.php, page.php
  • Blog posts index hierarchy: home.php
  • index.php

Ensure that you are calling body_class() inside of the HTML <body> tag, and provide a live link to your site, and we can provide a more specific answer regarding which file to edit.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.