Title: Working only for US
Last modified: August 30, 2016

---

# Working only for US

 *  Resolved [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/working-only-for-us/)
 * I am trying to show conditional content for African countries only, however the
   only country that seems to work is the US. ([site link](http://allianceearth.org/the-high-cost-of-cheap-gas-fracking-in-the-karoo/))
 * I added the IP and COUNTRY shortcodes for trouble shooting. When I use GeoedgePro
   to simulate different locations accessing the site, the COUNTRY name doesn’t 
   display, and the intended content doesn’t display, though the correct IP does
   display.
 * Also a user testing from South Africa informed me that they see the first link,
   which is meant for all countries outside of Africa, but not the second link, 
   meant for countries in Africa.
 * If I add US to the country code list, then it does display in the US.
 *     ```
       <div class="dl-box"> 
   
       <!-- content for countries outside Africa -->
   
       [CBC show="n" html="div" country="DZ, AO, SH, BJ, BW, BF, BI, CM, CV, CF, TD, KM, CG, DJ, EG, GQ, ER, ET, GA, GM, GH, GW, GN, CI, KE, LS, LR, LY, MG, MW, ML, MR, MU, YT, MA, MZ, NA, NE, NG, ST, RE, RW, ST, SN, SC, SL, SO, ZA, SH, SD, SZ, TZ, TG, TN, UG, CD, ZM, TZ, ZW, SS, CD"]
   
       Education & Community Screenings:
       <a href="http://www.greenplanetfilms.org/product/the-high-cost-of-cheap-gas/" target="_blank">Green Planet Films</a>
       [/CBC]
   
       <!-- content for countries in Africa -->
   
       [CBC show="y" html="div" country="CA, DZ, AO, SH, BJ, BW, BF, BI, CM, CV, CF, TD, KM, CG, DJ, EG, GQ, ER, ET, GA, GM, GH, GW, GN, CI, KE, LS, LR, LY, MG, MW, ML, MR, MU, YT, MA, MZ, NA, NE, NG, ST, RE, RW, ST, SN, SC, SL, SO, ZA, SH, SD, SZ, TZ, TG, TN, UG, CD, ZM, TZ, ZW, SS, CD"]Download or stream the film:
       [purchase_link id="1175" text="Add to Cart" style="button" color="green"][/CBC]
       <div style="font-size:10px; color: #888"
       ```
   
 * >[CBC_COUNTRY /][CBC_IP /]</div></div>
 * Any help getting this to work would be appreciated.
 * [https://wordpress.org/plugins/custom-content-by-country/](https://wordpress.org/plugins/custom-content-by-country/)

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

 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318702)
 * This may just be down to inconsistencies in the IP->Country database. It isn’t
   100% accurate, but it is free.
 * I may look soon to switching to another, but this is a non-trivial task and time
   really is a limiting factor here as this is all handle in my spare time.
 * I’ll see what I can do though…
 *  Thread Starter [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318709)
 * Hi, thanks.
 * I did some testing and figured out that the problem is not the plugin. It works
   fine on the testing server, but the live site is not working. So it either got
   corrupted in transfer or the live server environment is not allowing it to work.
 * Is there a way to uninstall the data and plugin, without phpMyAdmin access?
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318720)
 * no, you’ll need to us phpmyadmin to remove the tables…
 *  Thread Starter [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318730)
 * Okay.
    I see what happened now.
 * When I moved WordPress from the development server to the live server, the ip2Nation
   tables were not transferred. Perhaps because they don’t share the database table
   prefix? Also, even though the database tables were not present, the plugin did
   not detect that they were missing.
 * I imported them manually to the live site and hopefully everything will work.
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318761)
 * The plugin honestly requires a lot of work to bring it up to speed and ensure
   it’s able to detect those sort of inconsistencies. That’s unfortunately significant
   money+time which we don’t have just now to focus on it.
 * It will come in time I hope.
 *  Thread Starter [AJD](https://wordpress.org/support/users/ajd/)
 * (@ajd)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318762)
 * Indeed, thanks for putting it out.

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

The topic ‘Working only for US’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-by-country.svg)
 * [Custom Content by Country (by Shield Security)](https://wordpress.org/plugins/custom-content-by-country/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-by-country/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-by-country/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-by-country/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-by-country/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-by-country/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [AJD](https://wordpress.org/support/users/ajd/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/working-only-for-us/#post-6318762)
 * Status: resolved