List non-empty categories from a custom post type
This will end up being a little convoluted since the taxonomy just describes a relationship that may belong to any of the post types, so there’s not a direct data link for what you’re trying to fetch. But you could do something like this (untested), which could be a fairly heavy query if you’re doing … Read more