• Hi,

    I’m trying to figure out how to exclude certain pages from my WordPress menu. I’ve tried a dedicated plugin but it’s not compatible with my version of WordPress (3.1.3).

    In addition, it seems like my theme’s header.php file doesn’t contain anything similar to:
    <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=&exclude=340’); ?>

    Which is the common solution.
    So I’m a bit lost.

    Here’s my header.php file:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Any idea how can I solve this issue?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • It uses WP 3’s wp_nav_menu function. You can create a menu under Appearance->Menus and assign it on the ‘primary’ theme location.

    webriti

    (@priyanshumittal)

    something like this will help you
    <?php wp_page_menu(‘show_home=1&exclude=5,6,7,8&menu_class=page-navi&sort_column=menu_order’); ?>

    and do create menu under Appearance->Menu panel

    Thread Starter remocompany

    (@remocompany)

    I feel so dumb right now.
    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude page from menu’ is closed to new replies.