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'd like to have a static home page and also have a link called "Blog" that lists posts in the "blog" category in chronological order.

Would the best way to do this just be to place code in archive.php and do a "switch case" on the category and do a loop on the posts?

Just looking for some options before I decide on a strategy and code the solution.

share|improve this question
    
213 questions...10 answers. Impressive. –  anu May 9 '11 at 13:45
add comment

1 Answer 1

up vote 5 down vote accepted

wp dashboard > 'Page' > add new > name it 'Home', publish

wp dashboard > 'Page' > add new > name it 'Blog', publish

wp dashboard > Reading Settings > 'Front page displays' select 'a static page' set 'Front page' to 'Home' page that you have added > set 'Posts page' to 'Blog' page that you should have added.

It doesn't seem like you need to create a 'Blog' category. Just let your new 'Blog' page display the posts loop, which will be your index.php theme file.

share|improve this answer
1  
Absolutely correct. I'll just add: if you want to customize the the display of either the Front Page or the Blog Posts Index, create/modify front-page.php for the Front Page, and home.php for the Blog Posts Index. –  Chip Bennett May 4 '11 at 3:33
    
Thanks for the help. I'll be doing it a bit differently (via script) but this helps clear up some questions I had about the default setup. –  Scott B May 5 '11 at 12:39
add comment

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.