WordPress.org

Ready to get started?Download WordPress

Forums

Page Order (3 posts)

  1. zachcraft
    Member
    Posted 6 years ago #

    Is there a string that will allow me to include only pages 3, 1 and 2 (in that order) while excluding page 4?

  2. Chris_K
    Member
    Posted 6 years ago #

    Have a look at the various options associated with wp_list_pages.

    If you set the Page order (via Manage Pages),

    wp_list_pages('sort_column=menu_order')

    then just add the exclude:

    wp_list_pages('sort_column=menu_order&exclude=4')

  3. zachcraft
    Member
    Posted 6 years ago #

    That worked, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic