Exclude Page Code Not Working

Discussion in 'WordPress' started by sixrfan, Mar 31, 2010.

  1. #1
    how come i have "exclude=171" in my list pages code below, but its not excluding page 171 from my page list in the leftside navigation on the website http://www.poolplayersforhire.com/????


    
    <div id="leftside">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
    
    <ul class="page">
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=171'); ?>
    </ul>
    
    <?php endif; ?>
    
    </div>
    Code (markup):
    please advise. thanks.
     
    sixrfan, Mar 31, 2010 IP
  2. shivam0000

    shivam0000 Member

    Messages:
    178
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #2
    for what thing is this code for ?
     
    shivam0000, Mar 31, 2010 IP
  3. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    sixrfan, Mar 31, 2010 IP
  4. bob25

    bob25 Well-Known Member

    Messages:
    1,519
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    128
    #4
    You should take a look at this plugin it's for the navigation bar but may work:
    http://wordpress.org/extend/plugins/page-link-manager/

    Also you might want to change the permalinks to:
    %postname%
    or
    /%category%/%postname%/

    Go to Settings/Permalinks and enter it in the Custom field
     
    Last edited: Mar 31, 2010
    bob25, Mar 31, 2010 IP
  5. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #5
    replace

    with

    or

    for more help http://codex.wordpress.org/Template_Tags/wp_list_pages
     
    Jalpari, Mar 31, 2010 IP
  6. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #6
    bob25, thanks, but i'm a little wary of the plugin because there should be a very simple way to edit the php to exlude this page. just havent figured out what it is yet. but thanks for the heads up about the permalinks.

    jalpari, i tried both options but neither worked. the Questionnaire link still appeared at the bottom of the page listing.

    please advise. thanks.
     
    Last edited: Mar 31, 2010
    sixrfan, Mar 31, 2010 IP
  7. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #7
    anyone? please help. thanks!
     
    sixrfan, Apr 5, 2010 IP
  8. falconeye849

    falconeye849 Active Member

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    falconeye849, Apr 5, 2010 IP
    sixrfan likes this.
  9. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #9
    that plugin worked great. thank you!
     
    sixrfan, Apr 6, 2010 IP