
Exclude WordPress custom taxonomy items from a list when they have no associated custom posts
Quite specific this but it was hard to work out, with ChatGPT and GitHub CoPilot failing to come up with a solution. We have a custom_post type ‘case_study‘, and a taxonomy, ‘category‘ (which is also used by other post types) and we wanted to display a dropdown list of the taxonomy items only if there... » read more