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

  1. ex : <?php wp_list_pages(’sort_column=menu_order'); ?>
  2. or : <?php wp_list_pages('title_li=<h2>Pages</h2>&sort_column=menu_order'); ?>

Tags :

This entry was posted on Thursday, October 19th, 2006 at 10:03 pm and is filed under Solutions. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Change WordPress page order”

  1. Aide WordPress - ou comment utiliser son blog WordPress - » Archive du blog » Gestion de l’ordre des pages (bug fix) Says:

    [...] à Gad El Kareem pour son article en anglais à ce [...]

 

Leave a Reply


 Top