WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. movablebeast
    Member
    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!

    Steve

  2. movablebeast
    Member
    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:

    http://www.macnotables.com/wordpress/

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

    Steve

  3. movablebeast
    Member
    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
    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

  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.

    HTH.

    Simon

Topic Closed

This topic has been closed to new replies.

About this Topic