How to change the sort order of the Pages?

December 8th, 2008 By admin

After creating my “Archives”, “Useful Links” and “About” pages => the pages got displayed sorting alphabetically or “About” => then “Archives” => then “Useful Links”.

I was interested in getting the “Archives” page displayed first so the search began. After sometime of digging the WordPress Plugins, I decided to try out the pageMash plugin.

The installation was easy => I then proceeded with re-arranging the pages using pageMash => it was super easy (just drag and drop), I was super excited => saved my changes in pageMash and refreshed my blog’s main page => uh-oh, why didn’t the order get changed? => refreshed again, same => verified pageMash config, refreshed, refreshed, refreshed => same lol

After some digging and viewing the theme code, I located the problem to be with pageMash utilizing the function “wp_list_pages” while my theme utilizes a different coding structure so pageMash never got into play.

After some thinking, I decided to check the WordPress’s Advanced Options feature => Hey what is that “Page Order” option all about? The description said “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.)

Solution Found:

When you write a Page or edit a Page => under “Advanced Options” => “Page Order” => enter a number for the order you would like

- with numbers from “0″ (zero) and up
- page with “0″ gets listed first
- page with “1″ gets listed next
- and so on

=> no plugin required :)

Social Bookmarking:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • StumbleUpon

Filed under: WordPress Tips

Leave a Comment

Required

Required, hidden

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories

Recent Posts