perotin Posted August 12, 2015 Share Posted August 12, 2015 (edited) Hi,I am building a classifieds WordPress website and I would like to know does there exist any plugin or method that allow posts to be shown based on the country/region/city of the visitor (ip based listing)? There should be an option to add the location of the post somehow in the admin panel so that the plugin can use the information and show the nearest posts. I ve been shown these two links but i dont know how to do it: http://html5demos.com/geo, http://www.w3schools.com/html/html5_geolocation.asp Thanks Edited August 12, 2015 by perotin Link to comment Share on other sites More sharing options...
Ingolme Posted August 13, 2015 Share Posted August 13, 2015 What problem are you having with the geolocation API? Have you tried it? Update For Wordpress there are plenty of Geolocation plug-ins https://wordpress.org/plugins/tags/geolocation Link to comment Share on other sites More sharing options...
perotin Posted August 13, 2015 Author Share Posted August 13, 2015 Hi, I literally don't know what piece of code goes where and how should it be structured. I want WordPress to show the nearest posts to the visitor's location which means I have to geolocate the posts themselves first somehow. I have tried the plugins, but it works on a country base. I'd like the posts to be shown on how near they are in a country. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now