• hi! im a newbie in wordpress and in coding. I’m currently trying to make this code work. I’m currently using WordPress 4.4.1 and the latest version of GeoIP Detection (https://ww.wp.xz.cn/plugins/geoip-detect/). And it seems that I’m not doing it the right way coz it wouldn’t show in any of my test post.

    here is the code:

    <script type=”text/javascript”>
    var z = [“SU”, “FX”, “TF”, “GB”, “GP”, “GU”, “UM”, “VG”, “VI”, “US”, “AU”, “CA”, “NZ”, “AE”]
    if ([geoip_detect2 property=”country.isoCode”] = z)
    {
    <div><button style=”color: #ff0000;”>View</button>
    }
    else
    {
    <button style=”color: #ff0000;”>View</button>
    }
    </script>

    any feedback,suggestions or correction to these code would be great!!!
    thanks you in advance!!!

The topic ‘GeoIP Detection’ is closed to new replies.