Category Order in CategoryTree

Home Forums Menubar Forum Category Order in CategoryTree

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3221 Reply
    Murtaza Jaffer
    Guest

    Hi

    Is there a way to change the category order in the CategoryTree option. Currently it is displaying the categories in the order they were created. I want to display these categories in descending order, i.e. last category at the top.

    Have a look at the Gallery option on the menu.

    Regards

    #3222 Reply
    andrea
    Keymaster

    Hi Murtaza,

    Menubar sorts categories alphabetically by default. To change that, you have to open the plugin file wpm-db.php, locate the line 300:

    WHERE tt.taxonomy = 'category' ORDER BY t.name ASC";

    and change it to

    WHERE tt.taxonomy = 'category' ORDER BY t.name DESC";

    That will reverse the alphabetical order, as you need.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Category Order in CategoryTree
Your information: