Hi, I have list of yachts with some tech specs. I want to filter them by yacht_passengers param. I have 0, 8, 34, 123 values for this field. Forgot to mention, yacht_passengers comes from ACF.
I got posts with 8, 34 and 123. It's wrong, because 8 < 10, not opposite. Am I doing something wrong? yacht_passengers value is int, do I have to change it back to string? I've just tested it and both string and int modifications return wrong result.
Hi, I have list of yachts with some tech specs. I want to filter them by
yacht_passengers
param. I have 0, 8, 34, 123 values for this field. Forgot to mention,yacht_passengers
comes from ACF.Suppose I have url like this:
Response will show all posts with
yacht_passengers
equal to 0, but not 8. If I change url like this:I got posts with 8, 34 and 123. It's wrong, because 8 < 10, not opposite. Am I doing something wrong?
yacht_passengers
value isint
, do I have to change it back tostring
? I've just tested it and bothstring
andint
modifications return wrong result.