I'm using wp_list_pages to generate a custom menu for certain pages and it works as expected.
I was wondering if it's possible to use 'sort_column' parameter based on depth, so that first-level pages (top parent pages) are sorted by let's say 'menu_order' and other level pages are sorted using 'post_title'.
By reading codex I didn't find what I was looking at. Will I need to use walker to achieve this? If so, I would be glad if I could get some tips on this.
Thanks
Aucun commentaire:
Enregistrer un commentaire