This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

No results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11841
    BarbaraBarbara
    Participant

    Hi,

    How or where can I view the exact query used in a search?

    I created Custom Fields, but when I search I always get No results!

    Or maybe you can see from my print_r of $args why it doesn’t work (see attachment)?

    Thanks,
    Barbara

    #11843
    BarbaraBarbara
    Participant

    You cannot access this content.

    #11844
    BarbaraBarbara
    Participant

    I only get results when I set Custom Fields connection Logic to OR.

    #11862
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    The problem is the “prijs” price field. I’ve checked one of the car pages, and that field is not numeric, therefore that filter always fails: http://i.imgur.com/l0CdOzf.png

    For example: € 2.950 – MySQL cannot cast a field to numeric for BETWEEN operations if there is other than numbers and decimal points are present. In this case the correct value must be simply 2950
    I recommend formatting the price in the output process, when printing the field value. It’s much better, as you will be able to do queries based on prices.

    #11864
    BarbaraBarbara
    Participant

    Thank you, thank you, thank you! I feel so stupid right now 😛

    #11868
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘No results’ is closed to new replies.