Order “Manage Pages” by Name
-
We have quite a few pages on our WordPress install and I find that it makes it quite a bit easier to manage them if they are sorted by name instead of ID. Pre-2.1, all that was needed was an edit to the page_rows() function in admin-functions.php to make the SQL query ORDER BY post_title. In 2.1 however, I see that they have actually implemented a function to call pages (instead of using a SQL query) and even when I change sort_column to post_name, it still isn’t sorting correctly. The query in question is on line 812 in admin-functions.php.
function page_rows( $parent = 0, $level = 0, $pages = 0, $hierarchy = true ) {
global $wpdb, $class, $post;
if (!$pages )
$pages = get_pages( 'sort_column=post_name' );
if (! $pages )
return false;Anyone have any ideas how to get my pages sorted by their post_name? Thanks!
- The topic ‘Order “Manage Pages” by Name’ is closed to new replies.