• Hello,

    How can i customise the plugin so the user can enter a store name as well as an adress and find it in the results ?

    I suppose it has something to do with the wpsl_sql filter but i am a sql noob and i can’t figure how to write the query ??

    Great plugin by the way, i am really happy with it.

    Thank you,
    Simon

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

    (@tijmensmit)

    I don’t have time to write out custom SQL queries, but I can point you in the right direction.

    First create a new template, and in the template add a dropdown that allows users to choose between name or location search. Make sure to give this dropdown a ‘wpsl-custom-dropdown’, this will make that the selected value is included in the AJAX data.

    You will then in the wpsl_sql filter have to check which value is set in the dropdown, and based on that run the normal code, or run code to search by title.

Viewing 1 replies (of 1 total)
  • The topic ‘Search by name and location’ is closed to new replies.