• Sorry for the duplicate post…WP server timed out and didn’t post content, only title.

    I need to hack my manage posts page so that the posts are sorted by ID number rather than date. I’m having trouble figuring out what changes I need to make or what variable I need to set in order to do this. I’m by no means an expert in either php or WP, but I am comfortable hacking away at the code, so I don’t necessarily need a plugin fix.

    Thanks,
    Will

Viewing 1 replies (of 1 total)
  • If you are using WP 2.2, look at edit-pages.php in the wp-admin directory.

    Around line 23, you’ll see:
    wp(‘post_type=page&orderby=menu_order&what_to_show=posts&posts_per_page=-1&posts_per_archive_page=-1&order=asc’);

    Just change orderby=menu to orderby=ID

    If you want the most recent posts to show first, change the order=asc to order=desc

    Don’t know if this applies to earlier versions of WP, but it works like a charm in WP 2.2.2 It does keep the parent-child relationships intact, so subpages still appear indented under their parent pages.

Viewing 1 replies (of 1 total)
  • The topic ‘Hack Manage Posts Page’ is closed to new replies.