Home Forums Plugin Support Advanced Search Widget Less than/greater than on same field

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 6 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1328


    Hi all,

    Thanks for the great plugin. I am currently having a small issue and was hoping you could help. I am working on http://www.businesschance.net/ and set up the advanced search widget to return results with a price less than one field and greater than the next field. Howerver, when the form is submitted, both fields take on the “greater than” value like so: http://www.businesschance.net/?s=&category=0&price=0&price=100&location=&asw_search=true

    Any way I can have a less than field AND a greater than field on the same meta key, or is there a workaround of some type? Please help.

    Thanks again.


    Tareq Hasan
    Post count: 2831

    Yes, you can use both operations on a single meta field. The trick is that, you've to use Meta Key Alias feature here. Give the second one (Max Price) a alias, that means a different name, for example max_price. That way Advance Search widget will run the both operation on same meta field.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Less than/greater than on same field’ is closed to new replies.