Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you added custom code to change the sorting and it only doesn’t work for the initial visit, then go to the WPSL settings page, scroll down to the ‘Tools’ section at the bottom and clear the store locator transient.

    Let me know if clearing the transient cache fixes the issue.

    Thread Starter futurecert

    (@futurecert)

    That works, thanks for quick reply

    Could you give a bit more information on how to do this? What was the custom code that was added to change the sorting? I need the locations to show alphabetically on initial load – often times my users don’t have an address and they need to look in the list for the name of the location. (I’m using this plugin to manage field locations for a baseball league.)

    Thanks!

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @amyclubb, add this code to the functions.php in your theme folder, and the store locations are sorted alphabetically.

    Do make sure that after you added that code, to clear the store locator transient cache. You can do this on the WPSL settings page in the tools section.

    Thanks – I added the code. But I’m not sure where the store locator transient cache is. You said it’s on the WPSL settings page? Why can’t I find this? In my Store Locator menu (on my Admin menu) I have options for “News & Upgrades”, “Locations”, and “Map Designer”. Am I missing it?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @amyclubb If you have a map designer and news & upgrade menu item, then you are probably not using my plugin.

    Wow – ok. You’re right. I was using a “WordPress Store Locator” plugin instead of the “WP Store Locator” plugin. I just installed your’s – and added a few locations to see if the sorting worked – and YAY! It works. So guess what – I’ll be using your’s, instead of that other one… Only bummer is now I have to re-enter all 50 of my field locations.

    Thanks again for your help!

    And… I have to say that your plugin is the best, by far. After trying several others, yours is the most user-friendly one. Thank you for designing it with customizable features. It really bugs me when developers try to “lock-down” all the options.

    Thanks!

    Amy:)

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @amyclubb Happy to hear you got it working and like my plugin 🙂

    Can you please re-post the code that needs to go into the functions.php file for the locations to show in alphabetical order. I tried the link above but it’s no longer active. Thanks in advance! This plugin is great and am using it on multiple sites. Thank you for all your hard work!

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @wpcoderca I had to change something on Github, and that broke all old links I posted here 🙁 But this article explains how to change the sort order.

    Hey Guys,

    Can the stores address be ordered based on the publication date?

    Hello Guys,
    We Have installed wp store locator WordPress plugins.
    https://wordpress.org/plugins/wp-store-locator/

    by default address sorted by distance.how to short store locator address by publish date.
    please give me code for add in function.php.
    if any help much appreciated.
    Thanks,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Display stores alphabetically’ is closed to new replies.