Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I had covered basically all the pages listed in the Template Hierarchy:

404_template
archive_template
author_template
category_template
tag_template
taxonomy_template
home_template
front_page_template
page_template
search_template
single_template
attachment_template

I'm using the front-page.php for my static front page and home.php for by blog index. So, with all that covered, what should I put into my index.php? Or can I leave it empty?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

index.php is shown whenever wordpress doesn't find an appropriate page template. Generally people use it as the template for their site's blog. If you are absolutely sure that it will never be reached, you can leave it empty. Just make sure you have that file present, otherwise the theme will not work

As a personal preference, when coming across this kind of situation, i just rename one of archive.php or home.php to index.php which will work just as well for almost all of the situations

share|improve this answer

Your Answer

 
discard

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.