Forums › Forums › Search & Filter Pro › Tell me why it does not work
- This topic has 24 replies, 2 voices, and was last updated 4 years, 9 months ago by Trevor.
-
Anonymous(Private) March 13, 2020 at 12:03 am #236551
Trevor, it worked, the first question is resolved.
Now the second question.
I have fields beginning of production and end of production of machines. I want to set the range, for example, select all the cars from 60 to 70 year of manufacture. How to do it?Trevor(Private) March 13, 2020 at 5:42 am #236562The field in the form for the start date is a taxonomy:
https://www.screencast.com/t/xUHehTZQMKif
As such, it is treated by WordPress as an array of text values and cannot have numeric filtering made on it.
It would need instead to be a Post Meta, which is a Custom Field, with numbers in. You can make fields like this with a plugin like Advanced Custom Fields (ACF, which you already have installed) which allow you to make a field group, inside which you make a Number field type for the years (do NOT make a date field) and you then show that field group for the posts. The problem is that you would have to manually add the data to that new field in each, but you have added only 16 so far. Then you would see that you can set the field in our form to search Number, and as a range, which will let you select a slider.
Anonymous(Private) March 14, 2020 at 12:27 pm #236700I did everything, I got the slider. There is one model that indicates the year of manufacture
http://u0967964.isp.regruhosting.ru/lk-2-nati-lk-3-10/
But it does not appear in the search results. -
AuthorPosts