I need to create a page in my site that I am able to access via url, but that won't be included in any of the navigation menus which are generated using wp_list_pages() on my site.
How can I accomplish this?
|
I need to create a page in my site that I am able to access via url, but that won't be included in any of the navigation menus which are generated using How can I accomplish this? |
|||||
|
There is a good plugin that adds a meta check box under all pages that indicates whether you want the page to show up in menus.Exclude Pages PluginThe other option is to convert from wp_list_pages to the new custom menus. When using custom menus only pages you add to the menu will be included. |
|||
|
|
|
You're in luck, there's a filter. See this line inside
So, just hook into
|
|||||||
|
|
just pass a flag to the wp_list_pages function call. All you need to do is get the page ID you want to exclude. See the example on the codex page listed below. http://codex.wordpress.org/Function_Reference/wp_list_pages#Exclude_Pages_from_List |
|||
|
|