• Resolved Philip Sola

    (@philsola)


    Hi,

    I need to add a second category filter to the map using a second taxonomy.

    Looking at the support ticket here, it suggests needing to change the wpsl-gmaps.js file which isn’t ideal as it will get overriden when the plugin is updated next.

    Can you please give me some help and advice on how to achieve this while waiting for version 3 to be released please?

    I assume there is more to this than just updating the JS file as well such as altering the sql query etc.

    Also, is there any ETA on version 3 of the plugin and how this will work with multiple taxonomies?

    Many thanks,

    Phil

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

Viewing 1 replies (of 1 total)
  • Hi there Philip, thanks for writing.

    Adding filters based on custom fields is not supported out of the box. However, it is possible to add custom dropdown filters, but it will require some coding.

    First, this will need a custom template, a dropdown that has the ‘wpsl-custom-dropdown’ class on it so that the submitted value is automatically included in AJAX data, and the use of the wpsl_sql filter and the wpsl_sql_placeholder_values filter to customize the SQL query so that the custom data is included in the search query.

    Please take a look at the mentioned links. It involves a bit of work, but it can be done.

    As for version 3.0, it is still in the works, we’ll release it when we feel it is totally bug-free!!

    Best regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.