• Kyle… Great job with Simple Locator!

    I made a test CSV import and data came in fine.

    A few questions…

    – can there be a “State” search input in addition to Zip?
    – can maps be turned off in search results?
    – anyway to display an alphabetical list of all entered locations?

    Thanks for this plugin and the others you’ve built!

    https://wordpress.org/plugins/simple-locator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kyle Phillips

    (@kylephillips)

    1) There is currently only one input available… you can label it however you’d like, but I’d recommend keeping it “Location”. There are logical issues with distance/radius search, Geocoding locations, and results that I plan on writing about on the plugin site when I get a chance.

    2) Maps can’t be turned off. This would violate Google’s API terms (the maps API is used to geocode locations entered, and based on their API terms, a Google map must be displayed if you’re using their data). You could hide them via CSS, but again, you’re technically breaking Google’s Map API terms at that point. See the Google API FAQs for more information.

    3) The results are listed in order of distance from the location entered in the search. Currently, there’s no way to reorder that list. If you’re just looking for an alpha list of all locations, you could setup your own loop and query the location post type (or if you’ve changed the post type to your own, query that).

    Thread Starter webguy262

    (@webguy262)

    So no easy way to get a list of locations by state?

    Plugin Author Kyle Phillips

    (@kylephillips)

    There’s no built-in methods, but it’d be pretty straightforward to list locations by state using a custom WP_Query object.

    If you’re using the built-in post type/fields, you could use the wpsl_state meta field to query against.

    https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters

    Thread Starter webguy262

    (@webguy262)

    Got it! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘importing/mapping additional_info?’ is closed to new replies.