Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    411
    Thanks
    119
    Thanked 0 Times in 0 Posts

    wordpress php exclude page issue

    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://poolplayersforhire.com/


    PHP Code:
    <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>
    please advise. thanks.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Just tried your code myself and it appears to work fine for me

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    411
    Thanks
    119
    Thanked 0 Times in 0 Posts
    thanks for trying.

    anyone else know what's going on here?????????

  • #4
    Regular Coder
    Join Date
    Aug 2009
    Posts
    411
    Thanks
    119
    Thanked 0 Times in 0 Posts
    anyone? i'm at a total loss here. please please help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •