Filter posts by meta key
Question
I would like to implement a search function where a user can enter an amount($amount) and based on that argument the search result needs to show all posts where $amount >= loan_min (meta key) AND $amount <= loan_max (meta key)
Let’s suppose we have a post that has meta keys loan_min=100 and loan_max=500 then say entering 200 in search will show this post but if a user enters 50 or 550 in search then this post will not be showing in the result.
0
2 weeks
2022-08-01T22:49:37-05:00
2022-08-01T22:49:37-05:00 0 Answers
0 views
0
Leave an answer