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.

Hey guys i recently created a theme. I want to show home.php when a visitor visit home page but all my blog posts are listed in index.php file. Can someone suggest me how to display index.php i tried http://www.mysiteurl.com/index.php but it redirecting me to http://www.mysiteurl.com/home.php Please advise me. Thanks

share|improve this question
    
we are already give the answers like these questions.so please don't repeat the questions.just check while you entering your questions. –  Ramkumar Jun 29 '11 at 4:04

2 Answers 2

up vote 2 down vote accepted

I don't think you fully understand the meaning of templates in WordPress. You do not choose template by including it in URL, WordPress deals with choosing template by making sense of URL request.

See Template Hierarchy in Codex.

share|improve this answer
    
Thanks. it helped me. –  Giri Jun 29 '11 at 10:12

i think you can create an empty page and then under settings->reading settings you can set that newly created page to "display latest posts". i think that should get that page to trigger index.php

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.