Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I created a home.php which doesn't display the recent posts in the standard-blog-style. Just have a look at my website to see what I mean. I want to create a link that leads to something like "http://..../blog" where the recent posts are displayed "normally". I know how to do that, but what I don't know is how to create that new "link" that leads to ".../blog".

Is it possible to create a "blog.php" just like a "home.php" where the recent posts will be displayed?

But even if I create a "blog.php" I will get a 404 error message when clicking on "http://.../blog".

I hope you get what I mean and can help me out here a bit. Do I have to modify the htaccess thingie for that or what? :/

Thanks a lot in advance :)

share|improve this question

1 Answer

up vote 3 down vote accepted

Don't use home.php for static home page, use front-page.php or any other page template instead.

Also see Codex page for Creating a Static Front Page

share|improve this answer
1  
This is correct, home.php is seemed to be default template for blog page, so if you make home.php template for your static home page, it will result in same page for static home page and blog page... just changing file name from home.php to front-page.php may do the trick.. – Rajeev Vyas Sep 1 '11 at 7:05
Thanks. I'll try and let you know if it worked or if I still need help! :) – japanworm Sep 1 '11 at 7:15
@Rajeev yes if you change home.php to front-page.php and create new home.php it will work fine, also you can just use index.php for blog post listing – Mamaduka Sep 1 '11 at 7:18
1  
Yes you need to do few modifications, that's why I linked codex page – Mamaduka Sep 1 '11 at 7:35
1  
You don't need to add content to "home" page, it will show content of your front-page.php and page "blog" will show your blog content – Mamaduka Sep 1 '11 at 7:53
show 5 more comments

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.