WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages - help exluding pages (2 posts)

  1. igorx81
    Member
    Posted 2 years ago #

    In this code: http://codex.wordpress.org/Function_Reference/wp_list_pages#List_current_Page.2C_ancestors_of_current_page.2C_and_children_of_current_page

    I'd like to exclude some pages from displaying, but in $sidelinks = wp_list_pages() it's not working, so I thing I should put it somewhere else (maybe in $result) but I do not know how.

    Also, how would it be possible to list all the subpages when in a subpage, like in http://codex.wordpress.org/Function_Reference/wp_list_pages#List_subpages_even_if_on_a_subpage ?

    Thanks a lot ;-)

  2. igorx81
    Member
    Posted 2 years ago #

    Explaining better. In the first code, I'd like:

    1. to exclude some pages from being displayed (listed)

    2. when in one of the last subpages (with no children), to list all the subpages and not only that one.

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic