Home › Forums › General Issues › Showing only post with certain field in query args? › Reply To: Showing only post with certain field in query args?
a “checkbox” field stores an array of values, you would need to use a ‘meta_query’ so that you can compare using LIKE "Yes"
or something along those lines. If you changed the field type you’ll also need to edit all of the posts to update the values.
What function are you using the query args in? Are you using WP_Query
or something else?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.