Yes this will be possible with Version 2.0. Please try out the Beta/RC and tell me if you find any issues. Status currently is “for me it works but API may still change slightly.”
Thread Starter
Caged
(@caged)
Thanks, will take the beta for a spin ASAP.
Thread Starter
Caged
(@caged)
Had to temporarily set permissions of the /wp-content/uploads folder to 777. After that i could update the Maxmind data.
Used the following examples in a Page but somehow it did not generate the country and/or countrycodes.
Examples used in page:
[geoip_detect2 property="country"] -> Germany
[geoip_detect2 property="country.isoCode"] -> de
[geoip_detect2 property="country" lang="de"] -> Deutschland
[geoip_detect2 property="country.confidence" default="default value"] -> default value
Seems i’m getting some errors in the HTML comments:
<!-- GeoIP Detect: Invalid property name. --><br />
ihrem Land ?</p>
<p>2.0 beta from github<br />
<!-- GeoIP Detect: Invalid property name (sub-property missing). --> -> Germany<br />
-> de</p>
<p><!-- GeoIP Detect: Invalid property name (sub-property missing). --> -> Deutschland<br />
default value -> default value</p>
I am guessing: are you developing on a machine that does not have internet access? If not, what is your IP? The results you get have errors because he didn’t find any data attached to this IP, and normally, if it is a local IP, he tries to get his Internet IP first (which of course only works if you are connected to the internet.) This should not be an issue for web servers, but only for development boxes.
EDIT: I have fixed the error message to say “<!– GeoIP Detect: No information found for this IP (127.0.0.1) –>” instead.