Home › Forums › Backend Issues (wp-admin) › WP Query – Multiple values in ACF Checkbox › Reply To: WP Query – Multiple values in ACF Checkbox
$values = get_field('status', $post_id);
foreach ($values as $value) {
}
other than that everything else is basically the same.
I am in the habit of always building this type of filter for any field that I may need to search by, even when there is not immediate plan to do so. They are quick to do, in fact I more or less have a standard filters that simply does it for all of a specific field type and appends “_wp” to whatever the field name is. standard filters will not work for repeaters though, but I do have a function that I feed in the repeater name and the sub field name I want to make it quicker.
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.