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.
Our next available supporter will start replying to tickets in about 2.37 hours from now. Thank you for your understanding.
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)
This topic contains 2 replies, has 2 voices.
Last updated by 2 years, 5 months ago.
Assisted by: Waqar.