How to Serve Content Depending on Country or Geo Location in WordPress

Some websites need to serve different content to people depending on the country or geographic location they sign in from. Usually we associate something like this with multilingual considerations, but it's not always the case. Sometimes the same language is used throughout, but the content served is different. Lets see what plugins can help us out to achieve these aims.
Table of Contents

Sponsored Ad

If you purchase through a link on our site, we may earn a commission.

Some websites need to serve different content to people depending on the country or geographic location they sign in from. Usually we associate something like this with multilingual considerations, but it’s not always the case. Sometimes the same language is used throughout, but the content served is different.

Lets see what plugins can help us out to achieve these aims.

Country Filter

Country Filter plugins allows you to control the visibility of WordPress elements depending on the users country of origin. You can hide or show certain elements of a page or some sections of a post from users browsing from a particular country. For example you could have a β€˜donate’ button that displays only if the user is browsing from France, or display one β€˜Buy Now’ button for a particular country and another for other countries. Maybe you want to display a video only for users in the US or Australia.

Developers and designers could use the plugin to load different stylesheets based on the users country. Services likeΒ hulu.comΒ uses techniques such as this to constrain viewership to a particular country.

Download Country Filter

Custom Content by Country

Custom Content by Country WordPress plugin fromΒ WorpitΒ offers you the option to show/hide content to users based on their location (where provided).

With a simple shortcode you can specify, using a list of country codes whether to display or hide a block of text/content.

Download Custom Content by Country

I also think that WordPress Multisite can be used in this case, although I cannot offer specific implementation guides. Has anyone of you worked in such situations? Leave your views in the comments section.

One question I have is this: How will serving different content affect your SEO and Google positioning?

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Sponsored Ad

If you purchase through a link on our site, we may earn a commission.

All suggestions are anonymous.

More from our blog...

8 Responses

  1. One thing these plugins don’t provide is the ability to show different menu items to different locations. I actually wrote a free plugin that does this…

    1. Hi, the plugin seems to not work currently in my wordpress version i just download it and activate it but the fields doesn;t show at the menu. please help to fix this thanks.

Post a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay updated with WP Mayor's newsletter showcase every week

Stay on top of every new WordPress innovation and latest launches. Receive all our fresh product reviews and expert guides directly in your inbox.

Hosting Survey 2024

Are you happy with your hosting provider or are you over-paying for too little? Have your say below!

"*" indicates required fields

What's the main reason you picked this host?*
How happy are you with your host?*

OPTIONAL: If you'd like to receive the results of this survey, please enter your details below.