Support » Plugin: WP Store Locator » Display all locations by default

  • Resolved andrey769

    (@andrey769)


    I’m trying to get all of the locations to display by default below the map. Preferably categorised by country.. Is there a good way of doing this?

    Many thanks

    The page I need help with: [log in to see the link]

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

    (@tijmensmit)

    Showing all location on page load requires you to enable the ‘Load locations on page load’ option on the WPSL settings page.

    If you want to change the sort order, then this is explained in this article.

    If you replace the code on line 8 from the article with this line, then it should short it by country.

    $custom_sort[$key] = $row['country'];

    donillo

    (@donillo)

    If I enable the flag I cannot see the list. I always have to search. Bug or feature?

    I tried with [wpsl] and with the [wpsl_map] shortcode.

    • This reply was modified 5 years ago by donillo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display all locations by default’ is closed to new replies.