WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 2 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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