I am working on a travel site, and there is a CPT called Listings
with a taxonomy called Destinations
. The Destinations
taxonomy is hierarchical and looks like this:
Country->State->City
We have another taxonomy called Categories
that contains the categories of listings, such as Restaurants, Parks, Beaches, etc.
What we want to do is create a sub-page under each City
for each category that the city has a listing post in.
E.g. If the city Albany has listings in the Restaurants, Parks and Airports categories, I want the site structure to look like this:
USA->New York->Albany->Restaurants->
or
USA->New York->Albany->Parks->
or
USA->New York->Albany->Airports->
etc.
When we create a post and add Albany and Beach to the taxonomies, we want to be able to see it in the archive at USA->New York->Albany->Beaches (slug would be albany-new-york-beaches
). The same for the restaurant category etc.
Is this possible to do using 1 CPT? Or should we create 2 CPTs?
(We don’t want to add Beaches, Restaurants etc. as a child taxonomy of destinations).
Any ideas?
TIA