Viewing 8 replies - 1 through 8 (of 8 total)
  • Not sure if this is what you mean, but in the Store Locator settings, there is a checkbox that reads: Load all stores on page load

    Second box down in the Map Settings section.

    I think that surfbird0713 wants a simple list of stores.
    I was thinking about writing a shortcode to do this (the plugin uses its own table in the database and the columns look straightforward).

    In the meantime, you can list the stores under the map:
    https://i.imgur.com/6tAgseM.png

    Another idea involves some coding: You can add a template (like the two listed in ‘Select template’ and dispense with the map.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @daymobrew the 2.0 version that I’m working on will stop using the wpsl table in the database and convert the existing data to custom post types.

    I don’t think it will be that difficult to create a shortcode that will show a full store list. But if you create one now for the 1.x version, you will have to rewrite the code to make it work with the 2.0 version.

    Coding the 2.0 is in the finale stage, so if you want to I can send you the 2.0 beta?

    The shortcode would be simple as it I would just do a basic $wpdb query, grouping the stores by country, sorting by name within each one. And then a table for display.

    You can email the 2.0 beta to damien – damiencarbery.com

    @surfbird0713: Here is the beginnings of a shortcode to show a simple list of stores.
    https://pastebin.com/Vg6byZbi

    You can add some code around this to hide the table until the ‘View All Stores’ link is clicked.

    Thread Starter surfbird0713

    (@surfbird0713)

    @daymobrew thank you! I am new to wp so this is a bit unclear to me but I will experiment and see what i can get working. The checkbox “load all stores” will work for now, although it makes the page load very slowly. Thanks for your help.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @surfbird0713 what is the url where it loads slowly?

    If you have lots of markers, you can try to merge them into a clusters by enabling ‘Marker Clusters’ on the settings page.

    You can simply download the code into a text file (get the raw code: https://pastebin.com/raw.php?i=Vg6byZbi), copy the file into your wp-content/plugins directory, activate the plugin (name = “WP Store Locator shortcodes”) and put the following in a page:

    [wpsl_list]

    Publish the page and test it.
    The table only displays store name, address 1 and url. If you like the idea of it I add to the code for a more complete table.

    Aside: I should change the is_plugin_active() check to class_exists( ‘WP_Store_locator’ )

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Link to show all stores?’ is closed to new replies.