• 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!

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter movablebeast

    (@movablebeast)

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

    https://www.macnotables.com/wordpress/

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

    Steve

    Thread Starter movablebeast

    (@movablebeast)

    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
    sort_column):

    <?php
    if(function_exists(“wp_andreas09_nav”)) {

    wp_andreas09_nav(“exclude=10,11,12&sort_column=menu_order&list_tag=0&show_al
    l_parents=1&show_root=1″);
    }
    ?>

    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.

    Steve

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

    HTH.

    Simon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide pages from menu in WP-Andreas09’ is closed to new replies.