WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content by Country (by iControlWP)
[resolved] Not Working for the United Kingdom (5 posts)

  1. pipelineaudio
    Member
    Posted 1 year ago #

    Countries from my english users cannot see their content. Seems to work for the rest of the european countries and the american one works as well

    These codes work for everywhere I've tried except anywhere in the United Kingdom

    [CBC show="y" country="us,ca,mx"]<iframe id="Spreadshop" name="Spreadshop" src="http://pipelineaudio.spreadshirt.com/" height="1800" width="848" frameborder="0"></iframe>[/CBC]

    [CBC show="y" country="gb,de,at,be,dk,li,lu,mc,ch,nl,fr,is,it,es,gb,bg,cz,ee,fi,gr,hu,lv,lt,mt,no,pl,pt,ro,sk,si,se"]<iframe height="1800" width="848" src="http://pipelineaudio.spreadshirt.co.uk/" name="Spreadshop" id="Spreadshop" frameborder="0" onload="window.scrollTo(0, 0);"></iframe>[/CBC]

    I assume gb is the correct country code for the UK?

    http://wordpress.org/extend/plugins/custom-content-by-country/

  2. Paul G.
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Yes, based on http://en.wikipedia.org/wiki/ISO_3166-1 I believe gb is the correct code to use here. Now, based on the code I've written, I don't think it would make a difference, but you have 'gb' listed twice.

    Can you send me a link to where you're using this?

    How can you tell exactly if it's not working for people in the UK?

    Thanks,
    Paul.

  3. Tambo Studio
    Member
    Posted 1 year ago #

    Hi both

    Did you ever manage to resolve this? I'm getting the same issue - i.e the gb content is not showing for me viewing the site in the UK. I have tested for germany and its working there.

    Any help you can give me would be much appreciated. The test page is http://www.tambostudio.co.uk/develop/

    At the bottom of the page there should be a uk statement saying

    [CBC show="y" country="gb"]I only appear in the UK.[/CBC]

    Sam

  4. elbriedekock
    Member
    Posted 1 year ago #

    Hi
    I am also using this plugin and I have found by using the country code "UK" for the United Kingdom it works. It clearly states that "gb" is the country code, but I tried using "uk" and it works perfect. Maybe try that and see if it works for you.

    Elbrie

  5. AontachtS
    Member
    Posted 10 months ago #

    Elbrie,

    I've tried using UK and it shows the text regardless of where I'm 'visiting' the website from. I have a couple of VPNs located in different countries, and on each log in I could still see the UK text even though in theory I should have seen something different.

    Aontacht

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.