Is it possible to create a single alphabetically ordered list containing categories from multiple category groups?

Here is the code I am using:

    {exp:channel:categories category_group="1|2"}

Unfortunately this separates the category groups, and I end up with a list such as this:

  • book
  • graphic identity
  • poster
  • website
  • architecture
  • art
  • David Bowie
  • ExpressionEngine
  • zoos

You'll notice that it is actually two lists ordered alphabetically. I would like to merge these into one list somehow.

I would expect to be able to add something like orderby= as in the Channel Entries Tag:

    {exp:channel:categories category_group="1|2" orderby="name"}

But this does not work. Has anyone come across this before?

Many thanks in advance.

1 Answer 1


GWcode Categories may be more helpful to you.
You can do a whole lot more with categories than the native solution.

I would be very surprised if it couldn't do what you need.

Use Stash.

Get all the categories you need, don't worry about the order.
Once they are stashed, they become one single list.

{exp:stash:set_list name="categories" parse_tags="yes"}
  {exp:channel:categories category_group="1|2"}

Then just output them all in the order you need.

{exp:stash:get_list name="categories" orderby="name"}
  • Hi Jason, thanks for your answer. I'll look into those options. I take it there is not a way to do this without using any add ons then? Apr 11, 2013 at 13:24
  • I can't say for sure... But, I would have tried the same code as you did, and it appears not to work. Apr 11, 2013 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.