I would like to learn the best way to filter custom post types by custom fields.
In the example I am working on, I use custom taxonomies to organize my posts and filter them.
I would like to add the functionality that would allow a user to filter posts by price and bedrooms in the ascending and descending order.
Price and Bedrooms are custom fields.
What is the best way to achieve this?