Yes implement it as a heirarchical taxonomy. Have your countries as the top level terms, then states, then cities. Your URL structure will naturally reflect this. I would advise against /city/state/country, as it is illogical and counter intuitive, and doesn’t make for a good heirarchy ( so bad SEO too ).
On your frontend, taxonomy-location.php should be your template. I’d strongly advise against using 3 dropdown lists, as it’s poor UI/UX and a pain to implement. Instead look at ecommerce sites and implement the drilldown list pattern of picking a country, then picking a state on the next page, then a city on the next, letting users look on a country wide level or a state wide level or a city depending on how specific they want it.
The details of how to implement that however are beyond the scope of this question and answer, you will need to ask in another question
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Get terms by taxonomy AND post_type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Allow user to Edit Posts but not Add New?
- WordPress 4.4+ : How to revision CPT + metadata
- Highlight menu item when on a custom post type?
- Querying custom posts and regular posts
- Post slug changed using code doesn’t reflect on editor when post is published
- Detect meta value changes when post is updated (post_updated)
- Remove Custom Post Type menu for non-administrator users.
- Using Query Posts With Multiple Post Types And A Taxonomy
- Display Custom Post Type in divs just thumb and title
- Custom Taxonomy List links being re-written
- wp_list_categories and custom post types
- How to show particular category all post in custom single file
- Bulk 301 redirect for custom post type
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- How to remove ‘create new post’ entry for a custom post type?
- Changing ‘view’ link for custom post type on list post screen?
- Check if a specific custom field exists?
- Fetch ID’s associated with a custom post type when translated with WPML?
- Custom post type show on both Home and Date Archive
- Create custom PAGE with register_post_type
- Custom post types archive redirect
- Update CPT post meta with update_post_meta and cron job
- Can’t query tag and post_type at the same time
- Moving ‘register_post_type’ to seperate file not working
- Get post from custom post type order by two taxonomies
- Rewrite post type slug only for child theme
- Checking if Post Title is Unique as Loop Criteria
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Override a page template from a plugin in a child theme
- Display custom fields from custom posts in RSS feed
- On update or create post redirect to current post position in list
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Versioned Custom Post Type (Not the same as revisions)
- Is it better to use WordPress Custom Post Types or Taxonomies?
- A custom post within a custom post
- Display Woocommerce Orders for specific author [closed]
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- TinyMCE style formats for different post types
- Lost of query parameter when using permalink
- How to add multiple images to a custom post type without plugin [closed]
- wordpress remove views from action links in a custom post
- Add post meta programmatically to attachment
- Custom Posts values in custom post overview
- Get Specific Template Part if Custom Field is Some Value
- Page as Archive page
- 3 random images from custom post type, each in a div with a diffrent class
- Displaying multiple post types on home page
- Archive links for custom post types
- Query to get child pages of current page and display it in action hook
- Make a custom column sortable by a value from a different custom post type
- Custom post type returns bad post ID
- Custom Post Types,Permalink and Heirarchy
- Send post changes to set email addresses (not users or subscribers)
- custom post archive URL is wrong
- How do I call the custom Post Type name and permanent link to my php file?
- Mandatory field in Custom post
- How to display related posts using the same taxonomy for custom types (WordPress, Pods, Woo)
- Filter custom post type admin list by custom meta column, where the column is another custom posts meta value
- Link custom post type to users membership
- In child theme, add CPT to custom taxonomy registered in parent theme
- How to display posts with plugin (advanced custom fields) field groups?
- Custom taxonomies not displaying in some custom posts
- Load info from customposttype into template page
- Multiple Loops In Tabs Only Displaying First Loop
- Is there a way to create a sidebar of bullets
- From CPT Custom Loop into Shortcode?
- Skip latest 3 posts from loop
- Custom taxonomy terms registered not showing when added in child theme
- How to assign post to category
- WordPress deletes custom posts instead of trash them
- Creating custom post type relationships
- How to create groups like that in buddypress?
- Display all Custom taxonomy terms and their relevant custom posts
- wordpress query_posts with foundation 6 Accordion not working correctly
- Include template if a post is a single product
- get_post_types doesn’t work in plugin
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Would like to add a “leaderboard” (custom field) to a custom post type
- Render custom taxonomy query as single template
- I have a custom post type that I want to query a dynamic category name from a custom meta field
- Is it possible to make one of two custom fields in Custom Post Type UI Required but not the other?
- adding a shortcode into a custom post type
- Custom Post within a custom post
- Custom My account page and custom page for editing posts
- What’s the best way to show custom post types? With page template it’s not perfect!
- show custom post types for a month
- How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?
- Post count for particular term
- using a template for more then 1 page
- Add word limit in wordpress posts editor
- wordpress custom post type shows other cpt posts in admin menu
- Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
- Calling custom taxonomies
- How do I add the “orange counter” next to a Custom Post Type?
- Custom slugs with dates & IDs on Custom Post Type