How To Add A Page To My Blog Without It Showing On My Header?

Discussion in 'WordPress' started by bad_bob00, Feb 13, 2009.

  1. #1
    Hi,

    I've got a wordpress hosted blog and when I add a page it seems to add the pagename to the top of my blog at the header, on the navigation bar.

    I tried making the page private but that just prevents anyone from seeing it. I was hoping to just link to it from a side bar text link.

    Just wondered if anyone knows how to add a page to my blog without it appearing at the top on the navigation bar?


    Thanks for any help
     
    bad_bob00, Feb 13, 2009 IP
  2. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #2
    You could probably edit the code to exclude that particular page.

    Read this- http://codex.wordpress.org/Template_Tags/wp_list_pages

     
    gr8liverpoolfan, Feb 13, 2009 IP
    bad_bob00 likes this.
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Thanks for the help :)

    If my line of code is currently this:
    <?php wp_list_pages('title_li=&depth=0'); ?></ul>

    How would I add the exclude function? Would it become this?:
    <?php wp_list_pages('title_li=&depth=0');('exclude=17,38' ); ?></ul>

    Also is 17 and 38 the number of the pages that are to be excluded? If so, how do I found out the number of my page? :eek:


    Thanks again
     
    bad_bob00, Feb 13, 2009 IP
  4. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #4
    Go to your edit pages option and hover over the title of the page.

    http://www.xyz.com/wp-admin/page.php?action=edit&post=500

    The part which has been made bold is your page ID.
     
    gr8liverpoolfan, Feb 13, 2009 IP
  5. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Thanks again.

    I've added this line:
    <?php wp_list_pages('title_li=&depth=0');('exclude=1563' ); ?></ul>

    But it still doesn't work. Any other ideas? Could my code be wrong?
     
    bad_bob00, Feb 13, 2009 IP
  6. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #6
    Where have you added the line?

    The code should be found in your header.php file.
     
    gr8liverpoolfan, Feb 13, 2009 IP
  7. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #7
    I've added the line in my navigation.php file - when I go to header.php I can't seem to find a line like:
    <?php wp_list_pages('title_li=&depth=0'); ?></ul>

    Any more ideas?
     
    bad_bob00, Feb 13, 2009 IP