On a custom category template, I’ve got it listing all sub-categories using get_category.
What I need to add is to get content from a custom post type, in that same sub-category. Something like:
– get sub-category (foo)
– now, is there a post in category-content (a custom post type) in that same (sub)category (foo)?
– show this sub category title, content from the custom post type, and link to the subcategory page
– rinse and repeat for each sub-category
- The topic ‘how to get custom-post-type post in same category on a category list’ is closed to new replies.