Ready to get started?Download WordPress


wp_list_pages exclude not working (8 posts)

  1. webdesignshowroom
    Posted 4 years ago #

    Hi, after switching to 2.8, wp_list_pages('exclude=2,3,50...') is not working any more. I can use the include command which works fine.

    When I try to use the exclude command, all the pages get shown.

    Has anyone come across this or got a fix?


  2. Samuel B
    Posted 4 years ago #

    that works fine on several of my sites
    your theme must have a problem doing it

  3. webdesignshowroom
    Posted 4 years ago #

    The odd thing is, it works on the footer, just not anywhere else so I have to use the include statement. The site is http://www.sandbanksproperty.co.uk -

    Any ideas?

    (thanks for your help btw! :) )

  4. webdesignshowroom
    Posted 4 years ago #

    Could it be a problem that I'm calling it several times on the same page?

  5. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Why don't you try just using it once on a page and see what happens?

  6. NeuroPR
    Posted 4 years ago #

    Apparently i noticed that it doesn't work on my site too. Happened after the wordpress update to 2.8.1.

  7. GeoffreyTransom
    Posted 4 years ago #

    Same here -

    <?php wp_list_pages('exclude=4690&title_li=&depth=3&sort_column=menu_order'); ?>

    does NOT exclude page ID 4690. PageID 4690 appears in the HTML (but doesn't appear on the screen because it is the last element in a div which does not display overflow).

    This has been the case since WP 2.8.1 for me; I can not see how the theme I'm using (StudioPRess' "Magazine 1.0") could possibly cause it.



  8. rpophessagr
    Posted 4 years ago #

    Having same problem.

    any solutions?

Topic Closed

This topic has been closed to new replies.

About this Topic