Include category archive in wp_list_pages() ?
-
Okay, it says very clearly in the Codex that Pages can NOT be associated with a category.
Even if we say pretty please?
Maybe I’m trying to push the astounding flexibility of WP a little too far. Or maybe someone can give me a different way to wrap my head around this for a solution, BUT:
- I’m creating a web site for a client that uses WP as a Content Management System.
- A good deal of information is set up in static Pages.
- This is in large part for the purposes of permalinks, but due to other technical difficulties I can’t use permalinks at the moment.
- Nonetheless, it’s very useful to have pages because they create hierarchy, which I use both in the side menu and for editing purposes behind the scenes.
- Contained WITHIN that hierarchy, I would like to have ‘News’, which would contain, essentially, all of the POSTS on the site. (They can all have the category ‘news’)
Why? Well:
- News seems like it’s part of ‘About Us’ in this case. I don’t want to give it undue attention when most visitors to the site will probably need other information found in the various pages. News is only a small part of this site.
- If I created a static list of pages just to incorporate this link, then my client can’t update that list if they want/need to.
I think that about sums it up. SO, is there a way to do EITHER of the following:
- Include a category listing (could maybe use wp_list_cats) in the middle of a list of pages using wp_list_pages()?
- Create a page template that pulls in either all the posts within a category, or just all posts in general?
The author will now cross his fingers and make an offering to the WordPress gods.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Include category archive in wp_list_pages() ?’ is closed to new replies.