By default, when a post with multiple category (or category with sub category) is created, wordpress listed those categories in alphabetical order in the admin post listing page.


Is there any way to change the way this sorting is done?

echo $cat[0]->cat_name;

This is why I need this. I want the parent category to be the first item in the array.

  • got another way to solve this. – Sunday Lalbiaknia May 23 at 11:34
  • Consider answering your own question in order to help future visitors who may have the same question. – jasonp May 23 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.