Viewing 1 replies (of 1 total)
  • Plugin Author Angelo Mandato

    (@amandato)

    Hello Jip,

    Thanks for those kind words!

    When you do not specify a sort_column or if specify the column “menu_order” the items will be ordered by the menu_order value in ascending order, unless they are all set to 0’s then it falls back to sorting by the page title.

    Here is my trick, I use the CMS Tree Page View plugin by Pär Thernström. In the Tree View I drag/drop the pages in the order I want, it will swap the “menu_order” numerically to make the pages sort how I wanted.

    This identified a mistake with the documentation. In my plugin it says that the sort_column default is “post_title”, it is actually “menu_order, post_title” (first menu_order, then post_title). This is copied from the source wp_list_pages() function which also has the sort_column in the documentation parameters list has Default ‘post_title’. Again this is incorrect, the actual default is ‘menu_order, post_title’. I reported the typo to the ww.wp.xz.cn team and will fix it in my plugin on the next update.

    Thanks,
    Angelo

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.