Display link to taxonomy archive only if it has posts with certain custom field values

Posts on my site describe future events, with the event date recorded in a custom field in Unix time. Generally, only upcoming events are relevant to visitors. As such, I’d like to display navigational links to taxonomy archive only if the taxonomy has at least one upcoming event (event date > today’s date). Is there … Read more

Mixed unrelated taxonomy in permalink

we have a situation where we want to build permalinks using mixed (unrelated, ie not hierarchical) taxonomies in permalinks on a wordpress site. and we dont want the taxonomy name in the actual link. So what we want is this: example.com/residential/for_sale/sandton where: residential = cpt_property_type for_sale = cpt_property_status sandton = cpt_property_suburb and then an archive … Read more

Bug when editing custom post type category?

When editing categories for my custom post type the selected admin menu is the one for posts (see screenshot). Is this a bug. If not it’s kind of non intuitive, and not so good for the end users experience. Screenshot Code: function product_register_product_post_type() { $box_post_type_args = array( ‘show_ui’ => true, ‘public’ => true, ‘taxonomies’ => … Read more