🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Geocode Switch icon
Possibly abandoned Tested up to 4.9.36 #4 in geocode

Geocode Switch

GeoSwitch is a plugin that allows you to change the content of your site based on the location of your client’s IP.

Active installs30+10+ tier
Downloads · 30d114▲ +81% vs prev. 30d
Rating4.7/53 reviews
Health score30/100At risk
All-time downloads4.9KSince Dec 2014
Support resolved—No recent threads
RequiresWP 3.0PHP any
Downloads · 7d39▲ +50% week over week
Our verdict

Consider an alternative

Geocode Switch shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 4.7/5 and was last updated 8 years ago, and scores 30/100 on our health check.

  • Small user base (30+ active installs)
  • Very few reviews so far
  • No update in 8 years
  • Only tested up to WordPress 4.9 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

81725Sep 4Oct 18Dec 2
Yesterday11
Daily average (1y)2
Peak day34Sep 14, 2026
Last 12 months652

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Geocode Switch stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
geocode #93 113 Best geocode plugins →
geocode filter #64 68 Best geocode filter plugins →
geocode switch #35 38 Best geocode switch plugins →
geomarketing #2 2 Best geomarketing plugins →
geotag #13 28 Best geotag plugins →

Version adoption

Share of active sites per release.

  • 1.1100.0%

Rating breakdown

★★★★★★★★★★ 4.7 from 3 reviews

  • 5★66.7%
  • 4★33.3%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Geocode Switch

From the official readme · v1.1.4

Description

GeoSwitch is a plugin that allows you to change the content of your site based on the location of your client’s IP.
To geolocate users based on IP GeoSwitch supports can user either the new the new GeoIP2 MaxMind
databases or GeoIP2 Precision Service.
MaxMind offers free and paid geolocation databases and the paid GeoIP2 Precision web service,
the author of this plugin is not affiliated with MaxMind in any way.

The main development of this plugin is in github.
Please open a new issue if you find a bug in this plugin.

This plugin uses the MaxMind PHP library which is released under the
Apache License version 2.0

Usage

= GeoSwitch Conditional Blocks =

GeoSwitch uses two shortcodes [geoswitch] and [geoswitch_case] to create conditional blocks.
The [geoswitch] shortcode is used to enclose one or more [geoswitch_case] shortcodes with different conditions. The
[geoswitch_case] shortcodes enclose content that will be shown if the condition is true.
The following example illustrates a GeoSwitch conditional block that will show different contact information depending
on the user’s IP location:

[geoswitch]
[geoswitch_case country_code="AU" state_code="NSW"]New South Wales Office[/geoswitch_case]
[geoswitch_case country_code="AU"]Australian Office[/geoswitch_case]
[geoswitch_case]International Office[/geoswitch_case]
[/geoswitch]

The above GeoSwitch block will display “New South Wales Office” to users in New South Wales within Australia,
“Australian Office” to other Australian users and “International Office” to any other user.

The [geoswitch_case] shortcode accepts the following attributes:

  • country – comma delimited list of country names
  • country_code – comma delimited list of country ISO codes
  • state – comma delimited list of of state names
  • state_code – comma delimited list of state ISO codes
  • city – comma delimited list of city names
  • within, from – This set of attributes is used to test for distances. Within is the distance in kilometers or miles and
    from is the centre point represented as “latitude,longitude” in degrees (example [geoswitch within=”10” from=”-33.7167,151.6”]).

The [geoswitch_case] shortcode matches only the attributes specified so:

[geoswitch]
[geoswitch_case city="paris"]You are in Paris![/geoswitch_case]
[/geoswitch]

Will display “You are in Paris!” to any user with an IP location in a city named Paris, e.g Paris, France or Paris, Texas, USA.
A [geoswitch_case] shortcode without any attributes always matches and can be used as the last condition in a conditional block
to show default content.
Content between [geoswitch_case] blocks can contain any markup including any other shortcodes, but conditional blocks should
not be nested as this is not supported by WordPress.
Content between the [geoswitch] and [geoswitch_case] shortcodes should be whitespace but is usually ignored:

[geoswitch] *DON’T WRITE HERE*
[geoswitch_case]...[/geoswitch_case] *OR HERE*
[geoswitch_case]...[/geoswitch_case]
[/geoswitch]

Informational Shortcodes

In addition to the conditional block GeoSwitch offers the following shortcodes to display user information:

  • [geoswitch_ip] – The user’s IP.
  • [geoswitch_city] – The user’s city name.
  • [geoswitch_state] – The user’s state name.
  • [geoswitch_state_code] – The user’s state ISO code.
  • [geoswitch_country] – The user’s country name.
  • [geoswitch_country_code] – The user’s country code.

If the IP of the user cannot be geo located these shortcodes return ‘?’

Debug Shortcodes

  • geoswitch_setip – Override the user IP. Affects shortcodes after this one.
    Usage:

    [geoswitch_case ip=’10.0.0.10′]

For debugging whole websites the user IP can be set globally in the admin settings for the plugin.

Filter Hooks

Geoswitch supports the following filter hooks:
geoswitch_skip_ip_check
Allows to programatically skip the ip check. If the hook callback function returns true the MaxMind libraries are not used to check the IP and the
default content (if configured) will be displayed.
Usage:

function skip_ip_callback( $skipCheck, $userIp ) {
    if ( some_custom_test($userIp) ) {
        $skipCheck = true;
    }
    return $skipChek;
}

add_filter( 'geoswitch_skip_ip_check', 'skip_ip_callback', 10, 2 );

Installation

Prerequisites

The Geoswitch plugin uses either MaxMind’s city database or webservice.

  • To use a local database for geocoding you’ll need either the free GeoLite2 city database
    (download from here) or obtain a license from MaxMind
    for a GeoIP2 citydatabase. After obtaining the database uncompress it before installation.
  • To use the webservice you’ll need to obtain a user ID and license key for GeoIP2 Precision Services.

Installation

  1. Copy the Plugin directory to your wordpress plugins directory (usually wp-content/plugins)
  2. Optionally copy your MaxMind binary database to the database subdirectory inside the plugin root direcory (GeoSwitch/database).
    The database should be uncompressed.
  3. In the WordPress administration settings search for the GeoSwitch configuration page:
  4. Select the type of geocoding service to use (local database or webservice).
  5. Enter the name of the database or the user ID and license key depending on the service you’ve selected.
  6. Set the units to use for distance calculations (kilometer or miles).

Note: if you use the local database you should update it periodically.

Changelog

Bug fix: Private and reserved IPs are not checked and no longer generate Added filter hook geoswitch_skip_ip_check to bypass the ip check based on (Thanks to Arūnas Liuiza from arunas.co for the BugFix and filter hook)

1.1.4

  • Bug fix: Private and reserved IPs are not checked and no longer generate
  • Added filter hook geoswitch_skip_ip_check to bypass the ip check based on
    (Thanks to Arūnas Liuiza from arunas.co for the BugFix and filter hook)

1.1.3

Bug fix: when IP cannot be found plugin correctly evaluates all cases and uses default empty case (if it exists), instead of not displaying anything.
Implemented support for comma separated values in geoswitch_case shortcode. Previous version mentioned this feature in the Readme file, but it was not actually implemented.

1.1.2

Error deploying to wordpress. Use version 1.1.3 instead.

1.1.1

Added setting to for user IP for debugging purposes and updated MaxMind Libraries.

1.1.0

  • Added support for MaxMind GeoIP2 Precision Service (thanks to Paul Scarrone
    and carlcapozza).
  • Fixed bug with measurement units. Units were always considered kilometers.
  • Tested under WordPress 4.1.

1.0.0

  • Initial release

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Geocode Switch alternatives

All geocode plugins →

FAQ

Geocode Switch: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Geocode Switch free?

Yes. Geocode Switch is free to download and use from the official WordPress.org plugin directory.

Is Geocode Switch safe to use in 2026?

Geocode Switch shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 4.7/5 and was last updated 8 years ago, and scores 30/100 on our health check.

How many websites use Geocode Switch?

Geocode Switch is active on 30+ WordPress websites and has been downloaded 4,879 times since it launched in December 2014. It was downloaded 114 times in the last 30 days.

Does Geocode Switch work with WordPress 7.1?

Geocode Switch is officially tested up to WordPress 4.9.36, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Geocode Switch last updated?

The latest version, 1.1.4, was released on July 21, 2018 (8 years ago).

Who makes Geocode Switch?

Geocode Switch is developed and maintained by elialgranti.

What are the best alternatives to Geocode Switch?

The most popular alternatives to Geocode Switch are Basic Google Maps Placemarks (2K+ installs), Address Geocoder (400+ installs) and WP Job Manager Client-Side… (100+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open