Title: Explain Parameters
Last modified: August 31, 2016

---

# Explain Parameters

 *  Resolved [joinpete](https://wordpress.org/support/users/joinpete/)
 * (@joinpete)
 * [10 years ago](https://wordpress.org/support/topic/explain-parameters/)
 * I am in the US and, since it is based on IP address and I do not have the ability
   to change mine, I need a way to either test this or I need an example or two.
 * I need to display different content for those in the USA vs these specific countries–
 * United Kingdom
    Spain Germany France Italy Canada China Japan Brazil Mexico India
 * Obviously I don’t expect you to code anything here. I am using this plugin directly
   in my PHP code and it works great for United States (I tested “If not in usa,
   display something else” statement which passed).
 * If I use <?php do_shortcode(‘[cf_geo return=”country”]’) ?>, what will the values
   returned be? Exactly what I have above for each respective country? or would 
   say, Spain, return “Espana”?
 * There is just not a good way to confidently say that I am delivering the content
   based on their location without traveling to these countries and testing it myself(
   without using a proxy).
 * Thanks! (great plugin, by the way)
 * [https://wordpress.org/plugins/cf-geoplugin/](https://wordpress.org/plugins/cf-geoplugin/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [INFINITUM FORM](https://wordpress.org/support/users/creativform/)
 * (@creativform)
 * [10 years ago](https://wordpress.org/support/topic/explain-parameters/#post-7450106)
 * Thanks for using our plugin and this great question.
 * We spend months to made more accurate informations and made this plugin more 
   better.
 * After version 3.x, geoplugin return all country informations in English (US) 
   language. To compare in PHP you can do something like this:
 *     ```
       <?php
       $country = strtolower(do_shortcode('[cf_geo return="country"]'));
       switch($country)
       {
        default: break;
        case 'india': break;
        case 'germany': break;
         //- etc.
       }
       ?>
       ```
   
 * This is basic switcher what you can made in your template.
 * Realy soon this plugin will have in next version ability where you can setup 
   content based on visitor location.
 * We are also opened to help you and assists if you need some more development.
 *  Thread Starter [joinpete](https://wordpress.org/support/users/joinpete/)
 * (@joinpete)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/explain-parameters/#post-7450266)
 * Awesome! That was a great way to utilize the functionality.
 *  Plugin Author [INFINITUM FORM](https://wordpress.org/support/users/creativform/)
 * (@creativform)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/explain-parameters/#post-7450271)
 * If want to be 100% shure that this work properly, you can use _Country Code_ 
   property and you will not have any kind of problem. Here is example:
 *     ```
       <?php
       $country = strtolower(do_shortcode('[cf_geo return="country_code"]'));
       switch($country)
       {
        default: break;
        case 'in': break;
        case 'de': break;
        case 'us': break;
        case 'rs': break;
         //- etc.
       }
       ?>
       ```
   
 * This is from my side more clean and fast solution.
 * Also you can first separate content by _continent code_ and inside it country
   code to get more possibilities.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Explain Parameters’ is closed to new replies.

 * ![](https://ps.w.org/cf-geoplugin/assets/icon-256x256.png?rev=2852950)
 * [Geo Controller](https://wordpress.org/plugins/cf-geoplugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf-geoplugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf-geoplugin/)
 * [Active Topics](https://wordpress.org/support/plugin/cf-geoplugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf-geoplugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf-geoplugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [INFINITUM FORM](https://wordpress.org/support/users/creativform/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/explain-parameters/#post-7450271)
 * Status: resolved