Country Geolocation shortcodes for every need, plus the most flexible Text (and RSS) Widget available. Customize and personalize your posts and widget content for your visitor's locale (country) and/or the current category.
https://www.youtube.com/watch?v=EyT-WQh39E8
Customize post content to suit the visitor's location (country).
Display category relevant and visitor country relevant adverts/content in posts and widget areas.
Make category and country aware CCA widgets (text/scripts/news feeds) relevant to the post's category and/or visitor's location.
Make your CCA widgets/adverts smart responsive (display in post or sidebar depending on screen width).
Features ( more info in the CCA Plugin Guide):
- location aware Shortcodes for use in posts and pages (see CCA documentation). You can even auto convert temperatures in your text to the scale used by your visitor.
- YOU control widget content based on category(s) and/or visitor's locale(s)
- add multiple widgets to the sidebar, each configurable to display content based on current Category/Country aware content
- select categories by name (not by unfreindly numeric id)
- YOU choose the number of characters to display for RSS News Item excerpts (unlike WP RSS widget)
- option to nofollow news feed links and to open RSS links in new tab (unlike WP RSS widget)
- the same widget can be used as "Text" or RSS widget, depending on category and visitor locale, saving you valuable sidebar space
- can be used with Cookie Notice plugin to limit display of notice to EU visitors only
- can be used with Menu Item Visibility Control plugin to modify main navigation links to suit visitor's locale
- API for client side (browser) Ajax country/EU geolocation - for use by plugins and coders who need a javascript solution.
- extensions (developers see below) providing additional functionality (see plugin documentation)
Travel Blog EXAMPLE:
In one
CCA sidebar widget (you can use more):
- display a hotel booking advert/form by default
- for posts in category "Equipment" display an Amazon.COM Travel Gadget advert;
but if the visitor is located in the UK or Ireland display an Amazon.CO.UK equivalent;
- category "Transport": display a flight search advertisement
- category "Information": display UK Gov Travel Warnings News Feed (RSS) by default;
but if the visitor is from US or NZ show their Government's equivalent Feed instead
Use "
Ads within posts widget" to display a gadget advert within posts in category "equipment".
- set widget to only display on small devices i.e. when your sidebar is not visible.
Use
shortcodes to customize your posts for visitors from different countries e.g.
- [display only="US,GB"]some content[cca_display] will only display the enclosed content, advert etc to visitors from US and UK.
- [cca_display not="GB,AU"]some content[cca_display] will NOT display the enclosed content to visitors from the specified countries.
CCA Goodies Extension
Currently free for a tweet
see this post for more info. More flexibility for sidebar widgets . More "Ads in Posts" widgets.
Enable PHP.
Preview mode + view CCA content as if you are a visitor from specified country. More Geolocation shortcodes. Give pages "categories" etc etc.
GeoIP Country Data:
This product includes GeoLite2 data created by MaxMind, available from
http://www.maxmind.com .
If you use Cloudflare and have "switched on" their GeoLocation option ( see
Cloudflare's instructions ) then it will be used to identify visitor country. If not, then the Maxmind GeoLite2 Country Database, installed by this plugin, will be used.
Experts: a "hook" is provided to allow you to use other GeoIP systems with this plugin.
Developers and coders: edit functions.php or build your own CCA extension plugin using CCA functions, filters and actions.
Useful functions & methods are detailed in the CCA website's documentation. Actions, Filters & Hooks have yet to be documented; but view the RSS code within this plugin or download the "CCA Goodies Extension" from the CCA website to give you an idea of how to add additional functionality.
If you want to build your own extensions then contact me first as there is a chance that hooks will be renamed or removed.
Requirements: PHP 5.3 or later. Maxmind Geolocation (if used) requires at least PHP 5.4.
Install in the usual way:
1.Plugins -> Add New -> do a search for "Category Country Aware" to find it -> click "install now"
2.Activate the plugin.
3.Use the Dashboard->'Settings'->'CCA Goodies' and the Dashboard->'Appearance'->'Widgets' menus to configure.