-
Notifications
You must be signed in to change notification settings - Fork 0
Using repeatable groups
Simple Meta Boxes enables you to group several fields into a repeatable group. Repeatable groups are convenient in cases that require the same couple of fields to appear together for an undefined number of times inside a post/page. A repeatable group will allow you to duplicate an entire group, as opposed to a repeater field, which only duplicates one specific field.
By adding the repeater_group
key to a metabox all the fields in that respective metabox will become a repeatable group. The value of the key should be an array. The array can be empty, but you can also pass it several keys (arguments):
title - String. Optional. The titles for the group items. The default title is "group".
numbering - Boolean. Optional. Used to denote whether or not the group titles should be numbered. Defaults to TRUE.
numbering_prefix - String. Optional. Allows you to specify the prefix that comes before the group title number. Default to an empty string. This argument will be ignored if the numbering arguments is set to FALSE.