How do you create a page without having it appear in the navigation bar? (Wordpress)

Discussion in 'WordPress' started by RB!, Aug 11, 2008.

  1. #1
    How do you create a page without having it appear in the navigation bar? (Wordpress)
     
    RB!, Aug 11, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    In your header.php change

     <?php wp_list_pages(); ?>
    Code (markup):
    to

     <?php wp_list_pages('exclude=4'); ?>
    Code (markup):
    where 4 is the ID of the page you don't want listed.
     
    mizaks, Aug 12, 2008 IP
  3. RB!

    RB! Active Member

    Messages:
    216
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    how do I find the ID of the page, also I have 'title_li=&depth=1' in the brackets, what does it mean, is it safe to replace it with the exclude command
     
    RB!, Aug 12, 2008 IP
  4. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #4
    The ID of the page is in the admin panel under Manage->Page.

    <?php wp_list_pages('title_li=&depth=1&exclude=4'); ?>
    Code (markup):
     
    mizaks, Aug 12, 2008 IP
  5. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #5
    There is an easier way, just make it a sub page. If your theme does not support sub pages in a drop down menu, it will never show up on the navigation menu.
     
    hmansfield, Aug 12, 2008 IP