Forums

WP2.5: the exclude option in wp_list_pages changed ?!? (3 posts)

  1. RavanH
    Member
    Posted 4 years ago #

    I have the following code in my sidebar.php to show a page list where one item is excluded.

    wp_list_pages('sort_column=menu_order&title_li=&exclude=468');

    I would put any page I wanted to NOT be shown on the blog, as a subpage of that excluded page. Easy :)

    But now, after upgrading to 2.5... All the subpages of that excluded page are sudenly shown as if they were top level pages !!!!

    I read in the codex on http://codex.wordpress.org/wp_list_pages#Exclude_Pages_from_List that this should not be happening:
    "... Excluding a Page will also exclude all of its sub-pages from the list to be generated. ..."

    Am I doing something wrong or is this a bug ? Or has the codex not been updated to this new version ?

    Any suggestions highly appreciated ! :)

  2. Michel Marcel
    Member
    Posted 4 years ago #

    Your observation is right ! do you open a ticket in tracks ?

    Effectively, this previous feature ->2.3 was very useful. It is easy to organize pages (and subpages) without modifying themes... To exclude new pages, it was easy to affect it as subpage of a non-visible (excluded) parent page...

  3. Michel Marcel
    Member
    Posted 4 years ago #

    The tracks http://trac.wordpress.org/ticket/6804 is now created.

Topic Closed

This topic has been closed to new replies.

About this Topic