How do I order subpages in my static pages in Wordpress.org 2.8.4?
I have already applied a custom order for navigation at the top level of my page, but it does not automatically sort the submenus alphabetically, although I accepted this behavior:
Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, itβll be better in future releases.)
I have implemented navigation using this line of code:
<?php wp_page_menu( 'sort_column=menu_order' ); ?>
Finally, do I really have to go and manually order my static pages, or should I manually program the order of the menu items?
+2
Julian weimer
source
to share
2 answers
I think the My Page Order Extension might be what you are looking for.
+1
Thomas owens
source
to share
Also, have you tried:
wp_page_menu('sort_column=post_title');
instead of 'menu_order'?
In the Codex, it looks like the header will result in alphabetical sorting?
http://codex.wordpress.org/Template_Tags/wp_page_menu
+1
Jakub
source
to share