• Exo

    (@richardshea)


    Hi, awesome plugin. But I can’t use my own PHP?

    I’m trying this:
    $UserCountry = do_shortcode(“{ip:countryCode}”);
    if ($UserCountry === “GB”){echo “Hello UK Visitor!<br />”;}

    But $UserCountry never seems to be a normal string in that example. It’s not an array but outputs as “GB” in my tests.

    Is there any options for coding in PHP and not using shortcodes which could be the issue?

  • The topic ‘PHP options?’ is closed to new replies.