• Resolved petehawk

    (@petehawk)


    Hi,

    I’m struggling!

    Scenario. I have a global company website but the Australian division uses a different logo which I want to use instead of the UK/Global one when the visitor is viewing from Australia.

    So I need to say “If the visitor’s country is Australia echo the short code for the Aus logo” else “echo the short code for the UK/Global logo”

    My brain is refusing to let me into the code for this. Any help appreciated (apart from telling me the Australian company should change their logo!)

    Thanks

    Pete

    https://wordpress.org/plugins/custom-content-by-country/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paul

    (@paultgoodchild)

    Hey Pete!

    You should try programming the logic – it’s even more fun!

    So, failing the hope that the company wont change their logos, you’ll want something like:

    [CBC show="y" country="au"] AU Company Logo [/CBC]

    [CBC show="n" country="au"] Global/UK Company Logo [/CBC]

    I think this is what you’ll want… let me know 🙂

    Cheers,
    Paul.

    Thread Starter petehawk

    (@petehawk)

    By George…

    Fabulous.. that’s it.. so simple….

    Thanks Paul

    Plugin Author Paul

    (@paultgoodchild)

    Happy to help Pete! 😀

    Cheers!
    Paul.

    P.S. If ya find this plugin useful, would you be willing to leave us a glowing review? 😉

    Plugin Author Paul

    (@paultgoodchild)

    Thanks for the review Pete, really appreciate it! 🙂

    Thread Starter petehawk

    (@petehawk)

    Thanks for the plugin!

    Pete

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conditional nesting logic fail!’ is closed to new replies.