• Resolved Dave

    (@go3asy)


    Your plugin is great thanks πŸ™‚ We are building a website and are from a healthcare settiong, we have a service finder on our current website and n eed a new one for the wordpress site we are building and this seems to be the best store lcoator plugin I have found.

    As we have ‘services’ and its all for the local area I had changed the “counrty” field to say Service Tyle – not the actual name of the field, it still goes into the database as ‘country’ but is listed on the front end and the add forms as Service Type in the label! – sneaky cheap way to add it! – although I need to try and change the free text to a drop down as the services we list are doctors, dentists and opticians, pharmacies.

    Just wondering if theres a quick way I can filter the results so on the actuial finder people can sort the results to only see, “doctors” for example? So sort in a way that it only shows results is the ‘country’ field is ‘Doctors’ If that makes sense :s Hope you dont mind me changing the field a bit in the source πŸ™‚

    http://wordpress.org/plugins/wp-store-locator/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter Dave

    (@go3asy)

    Would it work with a drop down box rather than a checkbox?the output value is still the same no?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Dropdown is also possible. You can just give it an ID, then grab the select value. This happens on for example on line 430 on wpsl-gmap.js, then create a new field in the ajaxData object so you add filter : here comes the filter vaule from the dropdown. And then in php you do $_GET[“filter”] in the wpsl-ajax-functions.php to add it to the query.

    Thread Starter Dave

    (@go3asy)

    Im lost on that but when I have some spare time I think ill give it a go!

    Thread Starter Dave

    (@go3asy)

    marking as resolved!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Easy way to 'sort' results?’ is closed to new replies.