• Hello.

    We have been using this awesome plugin for some time now.

    Had a quick question about the list of our stores to the left of the map.

    How can we add the name of the store, for each store, above the address as it is shown in the listing on the left…??

    Currently, it shows the address, phone, email, etc. but not the name of the individual store.

    Thanks in advance.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi!

    Everything about wp store locator is highly customizable!

    I recommend that you take a look at the documentation, and in particular at the article about the wpsl_listing_template filter, which you can use to modify the HTML structure and even add additional data to the store listing template.

    I hope that helps.
    Regards,

    Thread Starter wpfiend

    (@wpfiend)

    Thanks for the response.

    I have the function custom_listing_template() working I think.

    I am not sure what is the name of the field for the title of the individual stores that I should be calling to display the name of the store in the listing.

    Is there a list of all the field names that are in the plugin so that I can choose from among them…??

    This is not working:

    $listing_template .= "\t\t\t" . '<p><%= wpsl-store-location %></p>' . "\r\n";

    Thanks in advance.

    • This reply was modified 2 years, 6 months ago by wpfiend.

    Hi again,

    Sorry, I should have pointed you in this direction instead: in your case what you want is to take a look at the variables in the header template in the store listing, which is documented in the wpsl_store_header_template filter.

    In any case, the variable with the store name is

    <%= store %>

    I hope that helps now ??
    Regards,

    Thread Starter wpfiend

    (@wpfiend)

    Thanks. Your last suggestion was the solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Name of each store above the address of each store in listing’ is closed to new replies.