Is it possible to create a page that is NOT visible in the sidebar but can be accessed through the menu in the header ?!
The first line of my sidebar.php of my theme states : <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
And yes, I do use widgets (=dynamic sidebar) to fill the sidebar so PHP automatically discards any following lines including wp_list_pages(‘exclude’). Or so it seems to me !
You can see at my website what I mean. http://www.massagepraktijk-kyaniet.nl
I don’t want the pages “Over mij”, “Over de praktijk” and “Gedragsregels” in the sidebar because they already have a place in the header menu.
I hope someone can help or at least tell me if it is possible or not.
Go to your widgets menu and expand the ‘Pages’ widget to edit it. There’s an option to exclude pages based on the page ID. Enter ther IDs of the three pages you want to exclude and they will disappear from your sidebar.