Problem:
How to sort view using numeric field was created by ACF.
Solution:
Using view's "wpv_filter_query" hook you can modify the run time query.
You should add "wpv_filter_query" hook to your current theme's funcitons.php file.
Code Example : https://toolset.com/forums/topic/sort-view-by-numeric-custom-field-value/#post-370481
Where:
change "cf-job-growth-pct" with your orginal field slug.
Relevant Documentation:
https://toolset.com/documentation/user-guides/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.
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 respuestas, has 2 mensajes.
Last updated by Daniel hace 8 años, 1 mes.
Assisted by: Minesh.