Multiple Custom Taxonomy Relationship
-
Hi,
I’m building an Events website with Woocommerce. The structure and relationship between the products/events and their Venues (where the event is taking place) is as follows:
Event (Woocommerce Product CPT)
Venue (Custom Taxonomy of Woocommerce Products CPT)However, I also need to group the Venues into Geographical locations such as North, South, Wales, Scotland so that venues can be filtered on the front-end by the visitor.
At first I thought I could just create another custom taxonomy called Venue Locations. However, how would I assign a venue to a venue location?.
Also thought of just making the Venue locations as parent terms for the Venues, so it would be like:North
Venue 1
Venue 2South
Venue 3
Venue 4However, a ‘Venue Location’ is not strictly a ‘Venue’ in itself so could cause issues when wanting to query the Venues taxonomy and display them on the front-end.
Another option would may be create the ‘Venues’ as another CPT and then add the ‘Venue Locations’ as a custom taxonomy there. However, using 2 different CPTs seems over-complicated for something that appears quite simple.
Keeping in mind that Events/Products will need to be assigned to a ‘Venue’ taxonomy term but not necessarily a ‘Venue Location’, what would be my best approach here?.
Any guidance much appreciated.
- You must be logged in to reply to this topic.