Title: Geolocator
Author: masikonis
Published: <strong>March 26, 2015</strong>
Last modified: November 27, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/geolocator/assets/icon-128x128.png?rev=1688328)

# Geolocator

 By [masikonis](https://profiles.wordpress.org/masikonis/)

[Download](https://downloads.wordpress.org/plugin/geolocator.1.1.zip)

 * [Details](https://pcm.wordpress.org/plugins/geolocator/#description)
 * [Reviews](https://pcm.wordpress.org/plugins/geolocator/#reviews)
 * [Development](https://pcm.wordpress.org/plugins/geolocator/#developers)

 [Support](https://wordpress.org/support/plugin/geolocator/)

## Description

Get website visitor’s location based on IP address and show/hide specific content
depending on country.

#### Meta box

You can hide post for particular country by filling “Hide for” field in custom meta
box in post’s edit screen. That way the post will not be included to the loop and
other parts of the website.

#### Shortcodes

_Country_

The most basic shortcode of the plugin is [geolocator] which displays country of
the visitor.

_Show_

You can show some specific content for particular country by using [geolocator_show]
shortcode. See example below.

    ```
    [geolocator_show for="US"]This information is being shown to visitors from United States only.[/geolocator_show]
    ```

The shortcode accepts “for” attribute. It should be a 2-letter ISO code of the country
you want to show the content for.

_Hide_

You can hide some specific content for particular country by using [geolocator_hide]
shortcode. See example below.

    ```
    [geolocator_hide for="US"]This information is NOT being shown to visitors from United States.[/geolocator_hide]
    ```

The shortcode accepts “for” attribute. It should be a 2-letter ISO code of the country
you want to hide the content for.

#### Widget

You can display country of the visitor by using Geolocator’s widget. It allows you
to choose a custom text.

#### Credits

This plugin includes GeoLite2 data created by MaxMind, available from [http://www.maxmind.com](http://www.maxmind.com).

## Screenshots

 * [[
 * Shortcodes of the plugin in post’s edit screen.
 * [[
 * Shortcodes displayed in the listing of theme.
 * [[
 * Custom meta box that allows to hide post for country.
 * [[
 * Simple widget that displays country of the visitor.
 * [[
 * Plugin settings, it allows to set fallback IP.

## Reviews

![](https://secure.gravatar.com/avatar/44d3af495c159f426170e0db34266844a8c67feb0848361ccdfb6bf4e85d3687?
s=60&d=retro&r=g)

### 󠀁[Not working nowadays](https://wordpress.org/support/topic/not-working-nowadays/)󠁿

 [douglasuk](https://profiles.wordpress.org/douglasuk/) November 8, 2019 1 reply

This plugin relies on data from a third party. That third party says they discontinued
the data on 2 January 2019. A pity: it looked quite good.

![](https://secure.gravatar.com/avatar/ab5a09190ad908804319ab0faf93ea11ffa34fc3a80b7a96358a28f20605765a?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-2575/)󠁿

 [tudormv](https://profiles.wordpress.org/tudormv/) March 2, 2018

Nice plugin, simple to use and get’s the job done.

 [ Read all 4 reviews ](https://wordpress.org/support/plugin/geolocator/reviews/)

## Contributors & Developers

“Geolocator” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ masikonis ](https://profiles.wordpress.org/masikonis/)

[Translate “Geolocator” into your language.](https://translate.wordpress.org/projects/wp-plugins/geolocator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/geolocator/), check
out the [SVN repository](https://plugins.svn.wordpress.org/geolocator/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/geolocator/) by 
[RSS](https://plugins.trac.wordpress.org/log/geolocator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Refactored framework of the plugin, it’s now more future-proof;
 * Changed data source to GeoLite-Country database by MaxMind;
 * Created shortcodes, widget and custom post meta box.

#### 1.0.1

 * Depreciated Telize API provider since it does not work anymore;
 * Improved the code style to match more the one defined in Codex.

## Meta

 *  Version **1.1**
 *  Last updated **8 years ago**
 *  Active installations **40+**
 *  WordPress version ** 4.1.1 or higher **
 *  Tested up to **4.9.29**
 *  Language
 * [English (US)](https://wordpress.org/plugins/geolocator/)
 * Tags
 * [ip location](https://pcm.wordpress.org/plugins/tags/ip-location/)[user country](https://pcm.wordpress.org/plugins/tags/user-country/)
 *  [Advanced View](https://pcm.wordpress.org/plugins/geolocator/advanced/)

## Ratings

 4 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/geolocator/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/geolocator/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/geolocator/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/geolocator/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/geolocator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/geolocator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/geolocator/reviews/)

## Contributors

 *   [ masikonis ](https://profiles.wordpress.org/masikonis/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/geolocator/)