Support

Account

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.