Forums › Forums › Search & Filter Pro › Post meta conditional
Tagged: conditional
- This topic has 12 replies, 2 voices, and was last updated 7 years, 11 months ago by Anonymous.
-
Anonymous(Private) December 4, 2016 at 9:46 am #73898
Hello,
I have search field “Max number of people” wich is connected to custom field “xxxx” wich contain one number. In the setings I’ve added manual entry option for this field from 1-12. Its working fine when user choose exact number. But, I need also to show all results when user select less number of persons.
Is it possible?
Thanks
Trevor(Private) December 4, 2016 at 11:11 am #73912At this time I do not think the plugin can do this, but if we added more comparison operator options for numeric fields (less than, less than and equals etc) this would be possible. Do you want me to add this as a feature request (this thread would be moved to the feature requests forum) for V3, which will be our next major release after we ship v2.3.0 (which is now in beta)?
Trevor(Private) December 4, 2016 at 12:10 pm #73916mmm. You could do what I did with this site:
http://wordpress-26860-57810-154087.cloudwaysapps.com/transportation/
I made a dummy field in the post type that holds multiple values, so, if the maximum number is 10, the field holds 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10
Then it works as you want. When I was making it, I spoke to Ross and it was the solution he suggested for me.
Trevor(Private) December 4, 2016 at 3:06 pm #73930What I meant was ….
In the post, you have a field for maximum number of people, which holds one number. If this is an ACF field, make it one that can hold more than one number, and, if it currently holds, say
9
as the value, make it hold all the numbers 1 thru 9, as an array. -
AuthorPosts