[Resolved] sort_column=menu_order broken when including pages on different levels
I am very surprised to see that
sort_column=menu_orderon pages from different levels does not function correctly.
- page id 6 with order 99, page is called Contact
- page id 60 with order 98, page is called Tools
- page id 100 with order 97, page is called Info
Now page ids 60 and 100 are children of page ids 59 and 99, with order 22 and 23.
IN my theme I have the following code :
<?php wp_list_pages('include=6,60,100&sort_column=menu_order&sort_order=ASC&title_li'); ?>
What I should get here, afaiu, is a list in that order :
However what I get is this :
The pages are ordered by name. No matter what I do. The sort_order is not taken into account, no matter if I use ASC, DESC or if I do not use this parameter at all.
The thing I did for the moment was to break up the parent relation for the pages Info and Tools, then ordering worked correctly.
I guess this is a bug, or is it a feature?
- The topic ‘[Resolved] sort_column=menu_order broken when including pages on different levels’ is closed to new replies.