Ready to get started?Download WordPress


Hide pages from menu in WP-Andreas09 (4 posts)

  1. movablebeast
    Posted 7 years ago #

    OK, here's one for you...

    I'm using the WP-Andreas09 theme on several sites. This theme does NOT use the standard wp_list_pages tag, so I can't use the "exclude" argument to hide pages. It does use the wp_andreas09_nav function that is based on wp-pagesnav.

    How can I hide pages from appearing in the menu and/or the page list? Helppppp!


  2. movablebeast
    Posted 7 years ago #

    BTW, if you'd like to see an example of WHY I need to hide those pages, take a look at:


    and click on the "The MacNotables Panel" item on the menu bar. See the mess?


  3. movablebeast
    Posted 7 years ago #

    Well, when in a hurry and in doubt, contact the developer. Ainslie Johnson responded in a few minutes with this info:

    You can exclude pages by ID number as you would with the standard
    wp_list_pages function.

    If you look at the following code taken from the WP-Andreas09 menu code in
    the header you will see I have added the exclude parameter to it at the
    start of the parameters (note the ampersand between the exclude and

    if(function_exists("wp_andreas09_nav")) {


    You can exclude as many pages as you want by ID number and it is really
    simple to do. If you don't know you can find page ID number in the manage
    pages options.


  4. Simon Wheatley
    Code for the People
    Posted 6 years ago #

    If you don't want to edit the theme code, you can also do this with my plugin, Exclude Pages.



Topic Closed

This topic has been closed to new replies.

About this Topic