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.

Sorry if this seems silly but I am new to WP. I realise that Index template is the most important file. Is it ok to have Index as your "home" page, and can you just assign the Index template to the home page when setting it up in the back-end?

share|improve this question
1  
for homepage you can have home.php file –  Sisir Dec 14 '11 at 11:58
    
Thanks. But I don't want the Home page to be different to the Index template. In that case, I can just have the Index template and assign it to be the home page without having a Home.php? –  tobeeornot Dec 14 '11 at 12:08
    
if you don't want to use home.php its okey. just have the index.php with all homepage content. Wordpress will fallback to index.php if it not find the home.php file. Not recommended though :) –  Sisir Dec 14 '11 at 13:10

1 Answer 1

up vote 0 down vote accepted

Use home.php just as Sisir said. Copy the content from index.php to that file and you are all set.

home.php tells wordpress that that page should be the homepage in a theme so no backend settings needs to be changed.

share|improve this answer
    
Thanks for that!! –  tobeeornot Dec 14 '11 at 13:53

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.