Filtering posts by an already registered taxonomy

register_taxonomy_for_object_type() allows you to “Add an already registered taxonomy to an object type.”. I’d like to use The Events Calendar taxonomy as an additional taxonomy for posts, like this

register_taxonomy_for_object_type( 'tribe_events_cat', 'post' );

Why? So they terms for each remain in sync (if a term is added to Events, it’s also available to posts).

This works but there doesn’t appear to be any way to filter posts by this taxonomy. For instance /?tribe_events_cat=x doesn’t filter posts (even after flushing permalinks).

Any ideas? Or alternative suggestions for what I’m trying to achieve?

Read more here: Filtering posts by an already registered taxonomy

Leave a Reply

Your email address will not be published. Required fields are marked *