You can definitly use PHP session variables. Follow this blog post (“Listing 3”) for the best way to enable PHP sessions in WordPress. Namely, you need to use this code in your plugin or in your theme’s funtions.php:
add_action( 'init', 'session_start', 0 );
After that you can use basic session variables to set the country when the user selects it, and subsequently access the country that the user has selected.
Good Luck!
Related Posts:
- Using wp_query is it possible to orderby taxonomy?
- display posts with same taxonomy term
- Advanced Tax Query
- WP Query with custom taxonomy
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Query custom taxonomy for category including children
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Advanced AND tax_query in sidebar with 2 taxonomies
- Using wp_query is it possible to orderby taxonomy?
- How to add images to taxonomies?
- Can you add the visual editor to the description field for custom taxonomies?
- Check if a post has any term in this custom taxonomy?
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Modify Term Update Redirection
- How to get first post in a category of a custom taxonomy
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- Archive template for taxonomy terms
- search query within custom taxonomy term, post title and meta field
- Sort posts by number of matched terms
- wp query with multiple taxonomy?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Possible to register multiple custom taxonomies in one function?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- How to output the taxonomy term name in a widget
- Function to limit the number of posts in taxonomy.php
- Is It Possible To Have Shared WordPress Custom Post Types?
- User role permissions based on taxonomies
- How to prevent posts duplicating when viewing a custom taxonomy term
- get_the_terms() to show all custom taxonomies
- Custom taxonomies making WP very slow – Way to fix?
- Order taxonomy terms in alphabetical order
- Get Taxonmy Term ID For Current Post
- meta_key & meta_value not working with get_pages and custom taxonomy
- Is it possible to create exclusive custom taxonomy?
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy with_front causes all
- cannot get multiple loops using tax_query
- Taxonomy archive showing no results
- Autogenerate Front End Form Field With jQuery
- Changing taxonomy term by slug (wp_update_term)
- Selecting all posts from the children of a particular parent taxonomy
- Rewrite Rule Working for all but one of the taxonomies created
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- woocommerce custom product category template
- Custom Taxonomy index/archive hierarchy
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Multi-select field for Taxonomy can’t save the value
- How to create a custom taxonomy using a shortcode?
- Custom taxonomy.php not working
- Get the taxonomy of the post
- Get object for a few selected taxonomies
- wp_query not resetting, last post hanging
- Problem with wordpress pagination
- Dropdown taxonomy lists in admin menu
- Taxonomy archive template that shows posts from more than one taxonomy
- How to get the term description in a taxonomy term archive query?
- How to define %category% for custom taxonomies?
- new custom filed not showing in taxonomy
- How do I get the correct URL?
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- WP_Query for custom taxonomies showing posts from non-specified terms?
- WordPress search query, how to modify the sql
- Dropdown (with onChange) with custom taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Taxonomy Terms That Don’t Exist Display Results
- Displaying subcategories and then posts in taxonomy template
- How to use two same taxonomy in same post differently?
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Show portfolio category slug in url ( if exist)
- switch statement for taxonomy content
- Display taxonomy term slugs
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to display elements of different post types?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- create taxonomy
- How to query posts that are not related to any term of a taxonomy?
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- What is the current page’s Taxonomy?
- Get custom taxonomy term url on archive page
- Display woocommerce product_cat child terms with thumbnails
- tax_query not working properly with get_posts
- query grandchildren taxonomy terms
- Adding new terms to custom taxonomy
- Prevent random entries in hierarchical false taxonomies
- Exporting CSV of users with custom user taxonomies out of WordPress
- is_tax not working for custom taxonomy
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- How to delete unused terms?