wordpress Q
wordpress Q
Out of context: Reply #7
- Started
- Last post
- 11 Responses
- acescence0
there's no easy way to do what you're trying to do with list_pages, since posts aren't associable to pages. you either need to create a hook for list_pages and compare the current category to all of the pages (lots of regular expressions and not easy), or the simpler method would be to just hardcode your pages menu and use conditional tags to test if you're either on the portfolio page or within the portfolio category.
another option is to rethink how you've set things up and make the portfolio category page your main portfolio page, and again use conditional tags to load some other page content when you're on the category page.