no it shouldn’t return NULL, can you tell me which source you are using and which IP?
It can return an empty record, though, where country returns “” – when the IP is unknown.
Hi, some ip got this:
No information has been found for the IP
https://ipstack.com/ is the source.
what I try to do is get default shortcode country = empty ? is possible to do that?
Hi, sorry support, what we try to do is like have “default” content for undetected ip address. are this plugin support this feature? thank you
I have to check …
For now, you can try using the attribute “isEmpty” as criteria:
[geoip_detect2_show_if property=”isEmpty” property_value=”1″]
[geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]
is working for me. Here is a test case, it should show Empty in all three lines:
Country empty or not?: [geoip_detect2_show_if country=""]Empty[else]Not Empty[/geoip_detect2_show_if]
Country empty or not?: [geoip_detect2_hide_if country=""]Not Empty[else]Empty[/geoip_detect2_hide_if]
Country empty or not?: [geoip_detect2_show_if property="isEmpty" value="1"]Empty[else]Not Empty[/geoip_detect2_show_if]
Can you tell me:
– Are you using AJAX mode?
– Which IP did you test? You can send it to my Email if you want, wp-geoip-detect posteo de
OK great, let me test on my website, if still not working I will report here or email to you. thank you to great support
[geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]
should work in the current beta (4.3.0-beta3), can you have a try?
https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing
I realized that empty parameter values were ignored before, accounting for the weird behaviour that you saw.