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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
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)
Ce sujet contient 2 réponses, a 2 voix.
Dernière mise à jour par Il y a 2 années et 5 mois.
Assisté par: Waqar.