Home › Forums › ACF PRO › Can’t select non-public post type › Reply To: Can’t select non-public post type
I just had a look through the code in ACF and here is the issue
FILE: includes/api/api-helpers.php
function acf_get_post_types()
LINE: ~642
// Bail early if is builtin (WP) private post type
// i.e. nav_menu_item, revision, customize_changeset, etc.
if ( $object->_builtin && ! $object->public ) {
continue;
}
There is a filter
return apply_filters( 'acf/get_post_types', $post_types, $args );
and you could use this filter to add ‘post’ back in.
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.