How to group and order results by a taxonomy
-
Hi,
I’ve create a custom post type for a company directory listing, with two custom taxonomies. The first taxonomy is a list of business categories and the second taxonomy is a package type i.e. “basic”, “plus” ,”premium” etc.
I’m trying to figure out how I can filter the results of the first taxonomy so that they are grouped by the second taxonomy. For instance if you were viewing a page of results for “Roofing” they would be grouped so that listings whose “package type” was categorized as “premium” would be listed first, followed by “plus” and then “basic”.
Is this possible? Or is this even the right way to handle it?
Any advice would be greatly appreciated. Thank you.
- The topic ‘How to group and order results by a taxonomy’ is closed to new replies.