Different content on page for different city
-
Hi. First of all thank you for great plugin, and sorry for my bad english)
I’m new in php, help me please with snippet which displays different content for different city.
E.g. I try<?php $userInfo = geoip_detect2_get_info_from_current_ip(); if ($userInfo->country->isoCode == '3166-2:RU') echo 'This is Saint Petersburg'; ?>
I’m not from Saint Petersburg, and I cant try it works or not, but can you tall me, it this right code?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Different content on page for different city’ is closed to new replies.