Support » Fixing WordPress » Admin Panel: sort categories by id

  • Kate


    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


Viewing 1 replies (of 1 total)
  • In “wp-admin/admin-functions.php” at line 590, change:

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


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

    Save. Voila!

Viewing 1 replies (of 1 total)
  • The topic ‘Admin Panel: sort categories by id’ is closed to new replies.