WordPress.org

Ready to get started?Download WordPress

Forums

Admin Panel: sort categories by id (2 posts)

  1. katie1
    Member
    Posted 8 years ago #

    After extensive searching & googling (thanks moshu) I can't find a solution to my problem.

    Is there a way I can change the category output in the admin panel/manage/categories to show all categories by id rather than name/alphabetically?

    I've checked out the categories.php in the wp-admin but I can't make sense of the php code to change the order listing.

    Can someone please point me in the right direction for this?

    Ta muchly

    Thanks

  2. fireundubh
    Member
    Posted 7 years ago #

    In "wp-admin/admin-functions.php" at line 590, change:

    $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");

    to

    $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_ID");

    Save. Voila!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.