Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Post meta conditional

Tagged: 

Viewing 10 posts - 1 through 10 (of 13 total)
  • Renato
    #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 Moderator
    #73912

    At 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)?

    Renato
    #73914

    Yes, please feel free to add to feature request. What can I do regard this at the moment? It is very important to me.

    Thanks Trevor

    Regards

    Renato

    Trevor Moderator
    #73916

    mmm. 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.

    Renato
    #73918

    I don’t sure what you mean dummy field? Single line field or something else? Sorry for sunday bothering

    Trevor Moderator
    #73930

    What 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.

    Renato
    #74529
    This reply has been marked as private.
    Renato
    #74537

    Sorry, and for some strange reason, I dont have any search parameters in address bar when I change search criteria. 🙁

    Hm, I don’t know what I should do about that. Thanks

    Trevor Moderator
    #74872

    The search parameters thing I would need to see. If the field is also being used as a visible field in post data results display, you would have to have two fields, one for display and one for filtering.

    Renato
    #75407

    This is not working for me. I’ve tried many combination but no success. This is very important for me at this time. Could you help me with that?

    Thanks

Viewing 10 posts - 1 through 10 (of 13 total)

The topic ‘Post meta conditional’ is closed to new replies.