[resolved] How do I get pages to not sort by ID in wp_list_pages (4 posts)

  1. drumz
    Posted 4 years ago #

    I have an order set in include= but it is not following that order but the ID instead.
    Here's how I have it:
    <?php wp_list_pages('sort_column=menu_order&title_li=&include=131,16,29,75,21&exclude=2,50,71,90,98,105,108,131,154');?>

    How do I get it to display as I want it?

    Thanks in advance!

  2. newsdevice
    Posted 4 years ago #

    I'm pretty sure you don't need both include & exclude, one or the other.

    <?php wp_list_pages('sort_column=menu_order&title_li=&include=131,16,29,75,21');?

  3. drumz
    Posted 4 years ago #

    You were correct about not having both but it is still showing by ID...

  4. drumz
    Posted 4 years ago #

    On each page there's a sort field. Align the sort of the pages with that box.

Topic Closed

This topic has been closed to new replies.

About this Topic