Support

Account

Home Forums Backend Issues (wp-admin) How to get all ACF groups or field for specific post type Reply To: How to get all ACF groups or field for specific post type

  • Try

    
    $groups = acf_get_field_groups(array('post_type' => 'your-post-type'));
    

    That will get the groups, I think. You then need to loop through the groups and use the group key to get the fields in each group using

    
    $fields = acf_get_fields($group_key);