About this plugin
G10DER Repeater Fields adds repeater field functionality for Advanced Custom Fields.
Create repeatable groups of fields without requiring ACF Pro.
Features:
- Repeater field for ACF Free
- Unlimited rows
- Minimum and maximum row limits
- Drag and drop row sorting
- Row collapse and expand
- Multiple repeater fields per page
- Import and export support
- Developer-friendly API
- Lightweight and fast
Supported Sub Fields:
- Text
- Textarea
- Number
- Select
- Checkbox
- Radio
- True / False
- Image
- File
- Date Picker
- Date Time Picker
- WYSIWYG
Usage
Create an “Extended Repeater” field inside an ACF field group.
Retrieve values using:
$rows = get_field( 'your_field_key' );
if ( $rows ) {
foreach ( $rows as $row ) {
echo g10der_get_sub_field( $row, 'subfield_key' );
}
}<h3>Helper Function</h3>
The plugin includes a helper function:
g10der_get_sub_field( $row, $field_name );
Example:
$rows = get_field( 'post_layout' );
foreach ( $rows as $row ) {
echo g10der_get_sub_field( $row, 'heading' );
}
Select and Radio fields return:
array( 'value' => 'option_1', 'label' => 'Option 1', );
Checkbox fields return:
array( 'option_1' => 'Option 1', 'option_2' => 'Option 2', );