I am trying to work out the most sensible way to structure a new site. I would like to have continents, countries and articles. Articles will be the normal post
type but I am unsure of the best way to setup the continents and countries.
I have played with setting up two new post types continent
and country
and have added a meta box to allow the country to associate itself with a continent. The URL structure is also what I want: /custom/continent/country
The trouble is how to efficiently associate posts
to a country so that they can be queried at the continent and country level.
The other option I am trying is to setup two taxonomies, which is easier in terms of categorising the posts, but makes URL rewriting a pain. I'd also want to limit the post to being tagged with multiple continents and countries.
The posts will just use a regular permalink structure for now.
UPDATE: I am looking for a solution that does not use plugins please. I can already create custom post types or custom taxonomies.