WordPress.org

Ready to get started?Download WordPress

Plugin Directory

IP2Location Tags

Description: Easily get/display the visitor's location information based on IP address and customize the content display for different countries.

IP2Location Tag provides a solution to easily get the visitor's location information based on IP address and customize the content display for different countries. This plugin uses IP2Location BIN file for location queries, therefore there is no need to set up any relational database to use it. Depending on the BIN file that you are using, this plugin is able to provide you the information of country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation and usage type of origin for an IP address.

BIN file download: IP2Location Commercial database | IP2Location LITE database (free edition)

Get visitor's location information with Variable Tag

Usage example

Display visitor's IP address, country name, region name and city name. Your IP is {ip:ipAddress} You are came from {ip:countryName}, {ip:regionName}, {ip:cityName}

Customize the post content with IP2Location Tag

Syntax to show content for specific country <ip:XX[,XX]..[,XX]>You content here.</ip> Note: XX is a two-digit ISO-3166 country code.

Example To show the content for United States and Canada visitors only. <ip:US,CA>Only visitors from United States and Canada can view this line.</ip>

Syntax to hide the content from specific country <ip:*,-XX[,-XX]..[,-XX]>You content here.</ip> Note: XX is a two-digit ISO-3166 country code.

Example All visitors will be able to see the line except visitors from Vietnam. <ip:*,-VN>All visitors will be able to see this line except visitors from Vietnam.</ip>

More Information

Please visit us at http://www.ip2location.com

Requires: 2.0 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-24
Downloads: 1,767

Ratings

4 stars
4 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1