WPLocation

Country-aware content for WordPress

  • Features
  • Demo
  • Add-ons
  • Pricing
  • Blog
  • Account
  • Get WPLocation

Interactive WPLocation demo

See country rules make a decision.

Check the country detected for your current visit, then preview the same examples as a visitor from the United States or United Kingdom.

Checking your detected country…

Preview buttons simulate a country for the examples below. They do not change your IP address or the country detected on other pages.

● Live local lookup● Free and Pro rule engine● No settings changed
Country used for this testChecking…
Am I detected in the UK?Checking…Based on the IP address received by WordPress.

Available in Free

Try every Free rule type

Each result below is calculated by the same Free rule function that evaluates WordPress content. The examples are isolated and do not save a rule to this site.

▤Checking…

UK-only page

Include a whole page for visitors whose detected country is the UK.

Page: include GB
Sample page: UK visitor guide
✎Checking…

USA-only post

Include one post for visitors detected in the United States.

Post: include US
Sample post: US product update
▦Checking…

Post category rule

Exclude an entire post category for USA visitors.

Category: exclude US
Sample category: Regional notices
⇄Checking…

Post plus category

A post is shown only when its own rule and its category rule both allow it.

Post: include US, GB · Category: exclude US
Sample post: Shared regional update
</>Checking…

Shortcode section

Show one part of a page to UK visitors while keeping the rest of the page visible.

[locationtarget country="GB"]
Sample section: Hello, UK visitor
◫Checking…

Country visibility block

Display a Gutenberg block only when a USA inclusion rule allows it.

Block: include US
Sample block: USA announcement

Country display shortcode

Show the detected or previewed country name and ISO code in page content.

Checking…

Blocked-content fallback

When the sample UK-only page is hidden, a site can offer a useful explanation and a way back.

Checking…

Pro rule preview

Explore product targeting

These examples call the installed Pro rule evaluator. They preview decisions for sample rules; this marketing site does not run WooCommerce, so they do not demonstrate actual catalog, cart, or checkout behavior.

▣Checking…

USA-only product

A product audience includes visitors from the United States.

Product: include US
Sample product: US market item
▧Checking…

Product category outside UK

A product-category audience excludes visitors from the UK.

Product category: exclude GB
Sample category: Other markets
Read how Pro product rules work →

Behind the result

What is actually being tested?

1

Country lookup

For the live UK check, WordPress estimates your country from the network IP address it receives using its configured local country database. The demo does not display or save your IP.

2

Rule evaluation

The Free and Pro plugin functions compare a country code with each example’s include or exclude list. A combined post and category example must pass both rules.

3

Visible result

“Shown” means the sample rule allows that country. “Hidden” means it does not. An unknown country does not pass a restricted rule. Preview mode changes only the sample country in this demo.

How accurate is it? IP geolocation is an estimate of a network location, not proof of residence. VPNs, proxies, mobile networks, and stale data can affect it. For real traffic, configure caching and trusted proxy handling so each visitor receives the right response.

Explore documentationSee all featuresCompare plans

Recent Posts

  • WPLocation Free vs Pro: Features, Licenses and Add-ons
  • Which WPLocation Country Rule Should You Use?
  • Welcome to WPLocation: Country-Aware Content for WordPress
WPLocation logo

Company

  • About us
  • Contact
  • Terms & Conditions
  • Privacy Policy

Product

  • Features
  • WPLocation Pro
  • Pricing
  • Add-ons roadmap
  • Get WPLocation

Resources

  • Blog
  • Documentation
  • Installation
  • Shortcodes
  • Changelog

Account & Support

  • My Account & Licenses
  • Contact Support
  • Blocked-content behavior

Copyright © 2026. WPLocation is a project of TechAbout LLC.
Questions? [email protected]