Problem:
I have values stored in a Post Title or Body as the example "AE 2345"
I want, that when a Search by number is performed, it queries only the Number in that stored value.
It means, when I search by 2345 the post AE 2345 should be found.
Solution:
You need Custom PHP code for this.
An example is to see here:
https://toolset.com/forums/topic/remove-spaces-and-ignore-case-2/#post-418246
Relevant Documentation:
http://www.php.net/manual/en/function.preg-replace.php
https://toolset.com/documentation/user-guides/views-filters/wpv_filter_custom_field_filter_processed_value/
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 4 replies, has 2 voices.
Last updated by zoeS 7 years, 9 months ago.
Assisted by: Beda.