I have set my home page to use a static template. So I created a Blog page to use a blog template to render my blog posts. The problem is it just renders the page content. I want it to render blog posts. Minus that of category "portfolio" & "WIP". Do I need to create a custom query_posts? what might it look like. To simulate what I get by default if my home page is set to latest posts. I will also need pagination to work.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
if you want to exclude categories then you do need to create a custom query something like this:
just above the loop and change 2 , 6 to the category ids which you want to exclude , and to help keep pagination i would add keep in mind that this is probably the simplest form of the query_post you need but if you want more out of its power take a look at the codex. Hope This Helps |
|||||
|