Get all categories on archive based on URL?

I have links to certain archive pages which list posts from two categories using WP urls, for example:

http://www.example.com/category/category-a+category-b

I am trying to print some plain text breadcrumbs in category.php to display which categories are present – for example:

Category A / Category B

However I’ve found that single_cat_title(); only displays the first category and I’m struggling to figure out how to display the second category (Category B in this instance).

Any help is greatly appreciated!

Read more here: Get all categories on archive based on URL?

Leave a Reply

Your email address will not be published. Required fields are marked *