Problem:
Trying to sort a view on more than one field value, and I'm only given limited options for a secondary sort.
Solution:
This feature was submitted and is under consideration still.
So right now the solution would be to do that using custom code and wpv_filter_query hook:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
You can use the code given in above ticket that you have posted. OR a solution given below that may work as well (modification could be needed):
https://toolset.com/forums/topic/order-by-two-or-multiple-parameters/#post-263775
Relevant Documentation:
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 3 replies, has 2 voices.
Last updated by 7 years, 2 months ago.
Assisted by: Noman.