• Resolved godmanchester

    (@godmanchester)


    Hi – Is it possible to change the page ID order when you go to the Manage Page option under the Admin Panel? So that the page ID order is lists the most recent pages at the Top and the older ones below?

    I have quite a number of pages and to edit the more recent ones means I need to scroll right to the bottom everytime.

    Can I edit the PHP Script in someway?

    Thanks

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • One thing that DOESN’T work is to add “ORDER BY $wpdb->posts.ID DESC” to the query at line 20 of edit_pages.php. That is the query because, if I introduce a syntax error, WP complains when displaying the list of pages.

    I think it may have something to do with the page_rows() function, but that’s as far as I looked.

    hallsey was right about the page_rows() function. If you change that you can reorder how the Pages are displayed.

    At line 141 in wp-adminadmin-functions.php, I changed the ORDER by menu_order to ORDER by post_date DESC and that did rearrange the Pages in descending order.

    Interestingly, the order of the Pages still adhered to the Parent/child relationship.

    Remember you can control the order of Pages without making the change above by using the Page Order field in the Write->Write Pages panel.

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    Thread Starter godmanchester

    (@godmanchester)

    Thanks MichaelH & hallsey, the ORDER by post_date DESC worked a treat!

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing the Page ID Order in Admin Manage Pages’ is closed to new replies.