Home › Forums › Backend Issues (wp-admin) › Filtering choices using load_field but not while editing field group › Reply To: Filtering choices using load_field but not while editing field group
what filter are you using to filter the values?
In most cases adding this to the top of your filter will work
global $post;
if (is_a($post, 'WP_Post') && in_array(get_post_type($post), array('acf-field', 'acf-field-group'))) {
// acf post types
// return whatever value is being filtered
return $original_value;
}
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.