WordPress store locator

Requirements

In a project I worked on earlier this year, I needed a store locator on WordPress but couldn't find any satisfying plugin. It was either too complicated, didn't do what I wanted, or had tons of expensive add-ons. I decided to code my own using the awesome Advanced Custom Fields plugin and the great add-on for map location fields.

This is an extremely basic store locator, good for people who already use Advanced Custom Fields.

Installation

  1. Install Advanced Custom Fields if you haven’t already.
  2. Copy the folder acf-store-locator in your plugins directory.
  3. Activate

Usage

  1. You will see a new “Stores” menu item in WordPress admin. Create stores here: title, content, image, use the location field to geocode the address.
  2. When you’re done adding stores, use the shortcode [acf-store-locator] in any post or page to show the map.
  3. When visiting the store locator page, if your browser supports it, it will detect your location, if not, it will show the US.
  4. You can type a city name or a zip code and if a store exists in the location you’re typing, you will see an autocomplete.
  5. That’s it! Click on a marker to see the store details.

Download

The plugin is available here: https://bitbucket.org/_karine/acf-store-locator.

Screenshots

Here are some screenshots of the plugin with theme Twenty Thirteen.

4 comments

  1. WPShowCase 9 December 2013 at 04:45:51

    Thank you for introducing your basic store locator. It a nice application of advanced custom fields.

  2. ALIBERT 26 February 2014 at 08:56:46

    Hi Karine,

    J'ai un soucis avec la traduction.
    J'ai bien essayé d'ajouter ma traduction espagnole au dossier langue mais qtranslate ne charge rien d'autre que la VF. La langue de base du wordpress installé.

    As-tu une solution ?

    Bien à toi,

    Julien

    • Karine 26 February 2014 at 14:57:05

      As-tu bien les fichiers .po et .mo avec les bons suffixes pour l'espagnol ?

  3. rudy 27 July 2016 at 07:36:07

    bonjour,
    je suis en france et le plugin ne fonctionne pas
    je mets bien l'adresse mais il me centre sur la ville

    que dois je faire?

    merci

Comments are closed.