WordPress.org

Ready to get started?Download WordPress

Forums

how to exclude a page from navigation (3 posts)

  1. h0rhay
    Member
    Posted 3 years ago #

    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">

  2. /" title="Return to the the frontpage">Home
  3. <?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">

  4. /" title="Return to the the frontpage">Home
  5. <?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">

  6. /" title="Return to the the frontpage">Home
  7. <?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

  • govpatel
    Member
    Posted 3 years ago #

    what theme version are you using as some themes support custom menu where you can manage your menu.

  • TOTM
    Member
    Posted 3 years ago #

    From viewing the source and the css I can see you are using F8 Lite. It supports Custom Menus.

    http://codex.wordpress.org/Appearance_Menus_SubPanel

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags