WordPress.org

Support

Support » Themes and Templates » how to exclude a page from navigation

how to exclude a page from navigation

  • Hi guys,

    Can anybody help me?
    I’m trying to exclude some pages from a navigation menu..
    I want to link to them from text links, but not in the main nav.

    http://www.georgedesign.co.uk
    (barclays is the page link I’m trying to lose)

    Here’s the nav code: (from header.php)

    <!– Begin Navigation –>
    <div id=”navcontainer”>
    <ul id=”navlist”>

  • /” title=”Return to the the frontpage”>Home
  • <?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?>

    </div>

    I tried this: (barclays is the page id)

    <!– Begin Navigation –>
    <div id=”navcontainer”>
    <ul id=”navlist”>

  • /” title=”Return to the the frontpage”>Home
  • <?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?>
    <?php wp_list_pages(‘exclude=barclays’ ); ?>

    </div>

    Didn’t work.. I tried this too:

    <!– Begin Navigation –>
    <div id=”navcontainer”>
    <ul id=”navlist”>

  • /” title=”Return to the the frontpage”>Home
  • <?php wp_list_pages(‘sort_column=menu_order_exclude=barclays&title_li=’); ?>
    <?php wp_list_pages(” ); ?>

    </div>

    No luck.

    Any ideas.. I’m stumped, but then I’m not much of a coder!

    Many thanks

    G

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to exclude a page from navigation’ is closed to new replies.
Skip to toolbar