I created some custom taxonomies in WordPress and when I want to show the categories for a custom post type on the frontend, they’re listed in alphabetical order.
Is there a code for functions.php that can help me list the Primary Category first, then the other categories?
In the example above, categories show up as "Americas, Europe, Global", but I would like them sorted as "Global, Americas, Europe". The first one should be the primary category, then the others listed in alphabetical order.
Thanks.