Categories FREE

Docs Field Groups Categories

#Categories Taxonomy

Order & manage your Field Groups easily with a new acf-field-group-category specifically registered for ACF Field Groups. The taxonomy can be managed from the “ACF > Categories” admin menu.

ACF Extended
Howdy, ACF Extended
ACF CategoriesAdd New
NameDescriptionSlugCount
Term 1term-12
Term 2term-20
Term 3term-33
Term 4term-43
NameDescriptionSlugCount

#Set Categories

Field Groups can be assigned to a specific Category just like any other Post Type, in the “Single” view on the right, in the “Categories” meta box.

Once assigned, the Category will be shown in the “Field Groups” List view. It is also possible to filter the view to display Field Groups assigned to a specific Catgeory by clicking on it. Note: The “Categories” column will be hidden by default if no Terms has been created.

#Retrieve Categories

You can retrieve the Field Group Categories using the native WordPress function get_the_terms(). Usage example:

// Get Field Group Categories by Key
$field_group = acf_get_field_group('my_field_group');
$categories = get_the_terms($field_group['ID'], 'acf-field-group-category');

/**
 * Array(
 *     [0] => WP_Term Object(
 *         [term_id] => 8
 *         [name] => Layouts
 *         [slug] => layouts
 *         [term_group] => 0
 *         [term_taxonomy_id] => 8
 *         [taxonomy] => acf-field-group-category
 *         [description] => 
 *         [parent] => 0
 *         [count] => 1
 *         [filter] => raw
 *     )
 * )
 */