Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've a set of Posts under custom post type that has a specific custom field (meta_value). This posts are categorized with a simple Common Parent->Child#N relationship.

The question is how to list all categories (similar to wp_list_categories(): "%Category_Page_URL% (%post_count%)"), considering the fact that I need to get categories that have posts with specific meta_value.

Question can be read as: "Build category list for posts where meta_value = $foo"

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.