Support

Account

Home Forums Backend Issues (wp-admin) How to add ACF field groups to "post object" post types?

Helping

How to add ACF field groups to "post object" post types?

  • I have a need to create a link to another ACF field group. However ACF field groups do not appear as an optional “post type” to link to, when I choose a “post object” field type.

    Is there a way to add them?

  • Only four years late 😉

    add_filter('acf/get_post_types', function ($post_types) {
    	if(!in_array('acf-field-group', $post_types)){
    		$post_types[] = 'acf-field-group';
    	}
    	return $post_types;
    }, 10, 1);
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.