PHPackages                             lightspeeddevelopment/lsx-geo-content - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. lightspeeddevelopment/lsx-geo-content

ActiveWordpress-plugin[Localization &amp; i18n](/categories/localization)

lightspeeddevelopment/lsx-geo-content
=====================================

LSX Geo Content allows you to serve different content to users based on their locations. This is automatically-detected by checking the users IP address and the Protocol Version (v4 or v6) being used.

01[1 issues](https://github.com/lightspeedwp/lsx-geo-content/issues)[1 PRs](https://github.com/lightspeedwp/lsx-geo-content/pulls)PHPCI passing

Since Jun 18Pushed 1w ago4 watchersCompare

[ Source](https://github.com/lightspeedwp/lsx-geo-content)[ Packagist](https://packagist.org/packages/lightspeeddevelopment/lsx-geo-content)[ RSS](/packages/lightspeeddevelopment-lsx-geo-content/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (7)Used By (0)

[![LSX Geo Content Extension](https://camo.githubusercontent.com/35ac04ff14e7b18422f85924d8ca0e397ebad810fe31f76ec49667786ac09181/68747470733a2f2f6c73782e6c736465762e62697a2f77702d636f6e74656e742f75706c6f6164732f323031392f30322f67656f6c6f636174655f3535305f783535305f3438302e706e67)](https://lsx.lsdev.biz/)

LSX Geo Content
===============

[](#lsx-geo-content)

 [![license](https://camo.githubusercontent.com/1c0f05852017a18d81c32325e04ffc9b6a47b878b34204555a138a0cc635ca6b/68747470733a2f2f706f7365722e707567782e6f72672f776f6f636f6d6d657263652f776f6f636f6d6d657263652f6c6963656e7365)](https://www.gnu.org/licenses/gpl-3.0.en.html) [![Built with gulp.js](https://camo.githubusercontent.com/3fb6a6602b082c37a156d06dd95ab4704e4d00dd98b5cbd21115852bc54be523/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c74253230776974682d67756c702e6a732d677265656e2e737667)](http://gulpjs.com/) [![Build Status](https://camo.githubusercontent.com/52609345d83cda6b87fb9890c9bbf677ae121e6f4460e4b9cde8315a64deccb2/68747470733a2f2f7472617669732d63692e6f72672f6c696768747370656564646576656c6f706d656e742f6c73782d67656f2d636f6e74656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/lightspeeddevelopment/lsx-geo-content) [![Made for LSX](https://camo.githubusercontent.com/17f209d938006bb077f58eadfe85350aaa15a0bdb6df7cb731e0a8893326fe30/68747470733a2f2f6c73782e6c736465762e62697a2f77702d636f6e74656e742f75706c6f6164732f323031392f30362f44657369676e65642d666f722d4c53582d5468656d652d626c75652e706e67)](https://lsx.lsdev.biz/)

Welcome to the [LSX Geo Content](https://lsx.lsdev.biz/documentation/lsx-geo-content/). The LSX Geo Content plugin detects your IP address and the Protocol Version (v4 or v6) used. Your country code is then determined using the downloaded DB from . This is cached for 1 hour.

It is compatible with Caldera Forms plugin, as it allows to pre-populate content based on the location.

Description
-----------

[](#description)

The LSX Geo Content plugin detects your IP address and the Protocol Version (v4 or v6) used. Your country code is then determined using the downloaded DB from . This is cached for 1 hour.

It is compatible with Caldera Forms plugin, as it allows to pre-populate content based on the location.

Shortcode
---------

[](#shortcode)

You can use any of the following inside a WordPress editor, or a shortcode enabled field.

``\[geo\_content countr"ZA"\] You are in South Africa \[/geo\_content\]

``\[geo\_content countr"US"\] You are in the US \[/geo\_content\]

Template Tags
-------------

[](#template-tags)

Replace country code with the 2 digit country code.

- United States ## US
- United Kingdom ## GB
- South Africa ## ZA

`
