Is there a way to have different pages appear in 2 separate sets of navigation without using “exclude” in the wp_list_pages() function?
I am using WordPress as a CMS, so outside of the Blog and News sections, everything else is done with pages. I have the main navigation working great but I’d like to be able to create a menu in the footer with a different set of pages.
At this point any new pages I add will show up in the top nav by default.
I tried creating a page called “Home” and then making the pages in the top navigation all children of that page. Then I was thinking I could create a page called “Footer” and do the same thing with the footer pages. But that adds ‘/home/’ and ‘/footer/’ to the URL of all those pages, which I don’t want.
I realize I could create all my pages and then just exclude the ones I don’t want from both menus, but that’s not really the best solution. I’ll have to edit both files any time I want to add a new page. I’d like to come up with something that ‘just works’.
- The topic ‘Divide pages to 2 separate navs?’ is closed to new replies.