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 …
Author: | LightSpeed (profile at wordpress.org) |
WordPress version required: | 4.3 |
WordPress version tested: | 5.4.1 |
Plugin version: | 1.0.1 |
Added to WordPress repository: | 27-03-2018 |
Last updated: | 30-03-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://www.lsdev.biz/product/lsx-geo-content... |
Total downloads: | 623 |
Active installs: | 40+ |
Click to start download |
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 https://dev.maxmind.com. 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
You can use any of the following inside a WordPress editor, or a shortcode enabled field.
[geo_content country="ZA"] You are in South Africa [/geo_content]
[geo_content country="US"] You are in the US [/geo_content]
Template Tags
Replace country code with the 2 digit country code.
– United States = US
– United Kingdom = GB
– South Africa = ZA
<?php
if ( lsx_geo_is_country( $country_code ) ) {
// Do code
} ?>
Caldera Forms
Add in one of the following custom CSS classes to the field you wish to pre-populate. The filters only work with the “text” and “dropdown” type classes.
– .lsx-geo-ip
– .lsx-geo-country
– .lsx-geo-region
– .lsx-geo-zip-code
– .lsx-geo-metro-code
– .lsx-geo-city
– .lsx-geo-latitude
– .lsx-geo-longitude
Nav Menu Filters
Firstly create a menu and assign it to a menu location. You will add a custom link to the menu and several child menu items, so it creates a drop down on the frontend.
– .lsx-geo
– .lsx-geo-parent
– .lsx-geo-default
– .lsx-geo-{country_code} e.g “lsx-geo-za”
– .lsx-geo-ex-{country_code} e.g “lsx-geo-ex-us”
Works with the LSX Theme
Our theme works perfectly with the Geo Content plugin.
It’s free, and always will be.
We’re firm believers in open source – that’s why we’re releasing the Geo Content plugin for free, forever.
Support
We offer premium support for this plugin. Premium support that can be purchased via lsdev.biz.