Problem:
The customer asked:
1. How to set the view's order by title first and then when the distance-based search is performed, order by the searched location.
2. How to show some content based on the existence of the distance value from the searched location.
Solution:
1. Suggested customizing the order settings using the "wpv_filter_query" filter and shared the code example.
2. Suggested using the "toolset-maps-distance-value" shortcode inside the conditional statement and shared an example.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Este tema contiene 2 respuestas, tiene 2 mensajes.
Última actualización por hace 2 años, 5 meses.
Asistido por: Waqar.