I have a post loop that queries a custom post type. I want to filter the posts based on a custom field. Is it possible to do this?
I have a post type called “Property” and I’m using Advanced Custom Fields (ACF) for the custom fields. Specifically, I have a select field called “Location” and I would like to filter the posts based on the city location.
I did some research and tried to achieve this, but it doesn’t seem to be working. Maybe I misunderstood something.
Thank you all for your help.