Home › Forums › Backend Issues (wp-admin) › Groups not showing for non-admin users › Reply To: Groups not showing for non-admin users
You will need to do some more tweaking then to be more specific and eliminate only certain types of CPTs from the change.
Instead of the condition I gave you try something like this
if (isset($query->query_vars['post_type']) &&
($query->query_vars['post_type'] == 'acf-field' ||
$query->query_vars['post_type'] == 'acf-field-group')) {
return;
}
Honestly, this it should be the other way around, only applying the change to a specific set of post types. But I don’t know all the post types that should be limited so I wouldn’t know how to do that.
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.