Change WordPress page order
I am not sure why Page order is not working in WordPress, but this is a simple workaround to fix it
- go to wordpress admin -> write -> write page -> change ALL pages “Page Order" from the right down box.
- open file “wp-includes\template-functions-post.php" in any text editor.
- go to line 334 or search for “function wp_list_pages($args = ”) {"
- insert this line after the searched line " $args .= '&sort_column=menu_order';"
- save it and now your page should order fine.
That should work with all your themes
You can do that from your Theme by adding "sort_column=menu_order" to wp_list_pages() function
-
ex : <?php wp_list_pages(’sort_column=menu_order'); ?>
-
or : <?php wp_list_pages('title_li=<h2>Pages</h2>&sort_column=menu_order'); ?>


November 9th, 2007 at 11:20 am
[...] à Gad El Kareem pour son article en anglais à ce [...]