Why don’t you just use a custom hierarchical taxonomy where countries are children of parent region terms? Seems more suitable and natural to me.
Related Posts:
- Return only Count from a wp_query request?
- SQL query equivalent to WP User Query
- meta_query on a date range using an array of values
- How to speed up wp_query, took more 5s to run against 100k posts
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Order by summing multiple values
- Update query for wp_posts and wp_postmeta
- mysql query order by
- Woocommerce Get Orders By Meta Value
- WP_Query always returning the last custom post
- Get a list of the last posts grouped by author and filtered by category
- meta_query dates from an array
- WordPress query very slow on +/- 300k DB entries and 7 INNER JOIN
- Wp get all the sub pages of the parent using wp query
- Use REGEXP in WP_Query meta_query key
- Order by DESC, ASC in custom WP_Query
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- How to uniquely identify queries?
- Get posts by meta data OR title
- WP_Query ordered by custom field that is a date string?
- How to make an activities stream mixing posts and comments?
- Duplicate Queries
- How to query for a week using key => value WP_Query argument notation?
- What’s wrong with this WP query?
- How to count post type that has a particular term?
- Group posts by meta_key
- Would this post meta be better added to the post table rather than post_meta table
- Foreach-generated custom tax queries, each with an ajax “Load more” button
- Order By Multiple Meta Fields
- WP_Query Performance Issues with meta_query
- How to detect custom query inside `posts_where` hook?
- Is temporarily overwriting $wp_query a bad idea?
- Query Set Order By Author
- How to output different posts per page?
- Mysql query LIKE not working
- Pass array of taxonomy terms to wp_query
- How to orderby meta_value_num with dollar ($) sign
- merge two query arguments into one WP_Query call
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- Query: offset post list, unless it’s a specific category
- How to reduce the number of queries?
- why update and delete query not worked in custom table?
- List of the years with posts presented
- Query custom post type by custom taxonomy (category slug)
- Hide Administrators From User List except current user (administrator)
- Custom Query num_rows returns wrong amount
- Editing the default wordpress search
- pagination with ‘no_found_rows’ => true,
- Weird orderby => post__in issue
- Slow page loads due to WordPress Core Query
- Set global $wp_query/$post variable for dynamic page generation
- WP_query sorting can’t sort danish letters (æ, ø, å)
- WP_Query with ‘rand’, but equal number of posts from the taxonomy terms given
- Meta Query relation “AND” then set array accordingly
- Query most popular terms by taxonomy over 2 week period
- Sort WordPress Posts Meta value by Week not Day
- Is_single() conditional tag returns null in query
- 2 wordpress loops showing 1 post from same post type – how to avoid showing the same post?
- Query posts that contain video?
- Show a 404 error page if Public query variable’s value doesn’t exist?
- Set front_page programatically after user login via query, while leaving site option alone
- How I can change the condition or compare operator for WP_Query in pre_get_posts
- Query where ANDing slug values not working
- How to filter query loop block with a search string from the query parameters
- Notice thrown when creating numeric pagination on custom query
- How to SQL query posts IDs by categories AND authors?
- Query multiple post types, but different order for each
- WP Query – grouping posts by same meta key, adding together values from another key
- setting offset to category number in archive page
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- use mysql variable in a $wpdb->query to reindex a column?
- Fix wp_term_relationships slow query in get_posts
- Query Posts | Combining multiple form inputs into query arguments to generate one filter result
- Sorting query_posts() with a complex orderby filter
- How to get_comments() ordered by date and parent?
- How to query 5 users in random who have published more than 10 posts
- Query postmeta based on meta_value, return array of post_id
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- How to show post title in content editor in backend?
- Adding Category in WP_Query Not Working
- Merge two queries and remove duplicate
- What is the best way to reset a search on a meta_key / meta_value?
- Slow query when selecting with large meta query or post__in
- Fetch only categorized posts
- Bring a post to the top of the query if it’s in a certain category?
- WP_Query with child element
- Custom pagination (Title, date and teaser)
- Using URL variables on a custom WP_Query
- Using WP_Query to re-query and sort results using a date?
- Pagination is not working on custom query inside a custom home page template
- WordPress Query showing multiple titles
- custom query to get posts
- confirm my booking with phone number
- Showing posts from 4 categories along with all latest posts
- shortcode using multiple WP_Query’s with multiple category names not fully functional
- Different sql queries count indicator on the main page [closed]
- Query posts by meta value and sort by another meta key
- Main loop querying current template’s info only in custom category archive pages, not my posts
- How to get posts that have certain meta key value and order based on another meta key’s value