1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to Exclude a Page in the Navigation Bar in Wordpress???

Discussion in 'WordPress' started by j.blu, Jan 21, 2008.

  1. #1
    I've got a Google custom search bar, and am using it on my Wordpress blog. The problem with this is the page I use to display the search results is in my navigation bar on the top of my front page.

    This perhaps might be a topic belonging in the php section, but would anyone tell me how to remove the specific page from the navigation bar? Thanks in advance.
     
    j.blu, Jan 21, 2008 IP
  2. Blonde Jon

    Blonde Jon Active Member Affiliate Manager

    Messages:
    745
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #2
    What is the URL to your blog? If I could see it, maybe I could understand what you are trying to do a little better.
     
    Blonde Jon, Jan 21, 2008 IP
    j.blu likes this.
  3. j.blu

    j.blu Peon

    Messages:
    319
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm still in the process of setting it up and fully launching, but it's the first one in my signature anchored "Local Kine Hawaii Blog".

    I've got the Google Custom Search in my right sidebar. If you want the results to show up within your site, you need to create a page for it. This is the page that I don't want showing up in the navigation bar below the header.

    Thanks for the reply...I appreciate it.
     
    j.blu, Jan 21, 2008 IP
  4. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi j.blu.

    I think this is the bit of code you are looking for..
    Obviosly you need to change the excluded page numbers to the pages you want to exclude..

    <?php wp_list_pages('exclude=17,38' ); ?>

    Hope that helps..
     
    uglyboy, Jan 21, 2008 IP
    ZeroCapacity and j.blu like this.
  5. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #5
    Yea I have ran into this same issue a few weeks ago..

    You can find and edit all instances of wp_list_pages in all the code as uglyboy said!

    Or you can use this wonderful plugin which makes it a snap..

    Exclude-Pages


    Enjoy,
    Boulder
     
    Boulder, Jan 21, 2008 IP
    DomainDomain likes this.
  6. j.blu

    j.blu Peon

    Messages:
    319
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks a bunch everyone! Green reps all around :)
     
    j.blu, Jan 21, 2008 IP