an
groups-icon

US county encode and meta search parameters for clickable maps

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.

    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.
    October 18, 2013 at 6:21 pm
  • keyboardcook@gmail.com aka Mark
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 18, 2013 at 11:48 pm
  • keyboardcook@gmail.com aka Mark
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    October 19, 2013 at 3:04 pm

512

Views

2

Replies