My theme is requiring me to use wp_page_menu for the navigation bar, and I’m running a wiki on WordPress using a wiki plugin. The plugin adds a meta_key of wiki_page to every page and a meta_value of 1 to those pages that are wiki pages and a meta_value of 0 to those pages that are not wiki pages.
My goal is for all of the non-wiki pages to show up in the navigation bar, either by only including them, or inversely by excluding the wiki pages. I can use the meta_key and meta_value parameters to get only the wiki pages to show up in the nav bar, but the opposite doesn’t seem to work – instead, all of the pages show up.
Can someone point me in the right direction? Thanks
The topic ‘wp_page_menu exclude based on meta_value’ is closed to new replies.