Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
keyboardcook@gmail.com aka Mark
0 points
Beginner
I wrote this plugin for anyone in need of a link for ‘clickable maps’ like MapSVG- where each state is broken down into Counties.
The problem was two fold. The new listings would not have that ‘County” stored on its own, and secondly there was no meta key for the search query.
This plug in will get the US County (administrative_area_level_2) that a geocoded address belongs to, and store it in a custom field called us_county. It then modifies the search to allow for the meta key ‘us_county’ to pull listings accordingly.
Example: Address is in Louisville, Kentucky.
Custom Meta Key ‘us_county’ set up with ‘Jefferson’ submission or save.
I wrote this plugin for anyone in need of a link for ‘clickable maps’ like MapSVG- where each state is broken down into Counties.
The problem was two fold. The new listings would not have that ‘County” stored on its own, and secondly there was no meta key for the search query.
This plug in will get the US County (administrative_area_level_2) that a geocoded address belongs to, and store it in a custom field called us_county. It then modifies the search to allow for the meta key ‘us_county’ to pull listings accordingly.
Example: Address is in Louisville, Kentucky.
Custom Meta Key ‘us_county’ set up with ‘Jefferson’ submission or save.
A link to all towns in Jefferson is now:
https://YOURDOMAIN.com/?s=&us_county=jefferson
Attachments:
You must be logged in to view attached files.Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now