How to exclude page ?

Discussion in 'WordPress' started by SonnyCooL, Dec 16, 2009.

  1. #1
    How to exclude page in wp top (header) navigation bar ?
     
    SonnyCooL, Dec 16, 2009 IP
  2. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
  3. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #3
    No plugin necessary. In your header file replace the existing wp_list_pages code with:

    
    <ul>
      <?php wp_list_pages('exclude=xx,xx,xx' ); ?>
    </ul>
    
    Code (markup):
    Put the page ID in place of the 'xx'.

    More info on the tag here.
     
    mizaks, Dec 16, 2009 IP
    SonnyCooL likes this.
  4. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please search this forum , this has been answered a million times
     
    Wp-Mod.Com, Dec 16, 2009 IP
  5. SonnyCooL

    SonnyCooL Peon

    Messages:
    1,170
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks guy .... rep added those help ...
     
    SonnyCooL, Dec 17, 2009 IP