I have created a page called ‘articles’ (id=2).
On this page I would like to have the page title and body, I would also like to query all posts from a particular catagory, AND I need to run list_pages() and have it list the ‘articles’ page as being current. whew!
If I use query_posts() to try and pull in all posts from my category, it breaks list_pages() knowing that this is the current page and applying the current_page_item class the the li tag.
I have done some digging and it turns out this is because apparently query_posts() resets the query object? (whatever THAT means) 😉 Essentially, I believe that query_posts is doing something to list_pages preventing it from knowing that the page its on is the current one.
Any help on how to pull specifc post catagories into a page would really help. Thanks!
- The topic ‘Pages – using the loop and query_posts’ is closed to new replies.