Custom Content by Country (by iControlWP)
[resolved] [Plugin: Custom Content by Country, from Worpit] display something to all other countries (4 posts)

  1. fcandillo
    Posted 3 years ago #

    I have phone numbers that I want to show to certain countries.

    Then i want to show a general phone number if it is in any other country.
    how would i display that?
    [CBC country="US" show="y"]us phone[/CBC]
    [CBC country="CA" show="y"]canada phne[/CBC]
    [CBC country="GB" show="y"]great britian phone[/CBC]
    ?if someone is viewing from another country?

    i only want to show 1 phone number.


  2. fcandillo
    Posted 3 years ago #

    ok, i think i may have figure this out...
    however, currently... i don't know how to test for the other countries.
    and i am in austria ;)
    basically, this is what i believe is the correct shortcode.

    [CBC country="US" show="y"]us number[/CBC]
    [CBC country="CA" show="y"]canada number[/CBC]
    [CBC country="GB" show="y"]great britian number[/CBC]
    [CBC country="US, CA, GB" show="no"]any other country #[/CBC]

    look correct?

  3. fcandillo
    Posted 3 years ago #

    ok. small blip in the shortcode... not "no" just "n"
    [CBC country="US, CA, GB" show="n"]any other country #[/CBC]

    found the following site that might be useful for those testing the plugin, and knowing there content is showing up in the right country:

    tried the site in three different themes and works great.
    nice work!

  4. Paul G.
    Plugin Author

    Posted 3 years ago #


    Sorry to see you had problems, but glad you got it sorted eventually. Perhaps I'll put in a case for "yes" and "no" as well to make sure this doesn't happen again.

    Glad you're liking the plugin and it works for you! :)

    If you have 2 seconds, would you mind giving it a rating on WordPress.org to help lend the plugin some credibility?

    Thanks! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Content by Country (by iControlWP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.