Skip to content

Commit

Permalink
Fixing #18: Parse nested ACF repeaters
Browse files Browse the repository at this point in the history
  • Loading branch information
RadoslavGeorgiev committed Feb 24, 2017
1 parent e60ff8c commit 287d3ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion classes/class-acf-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,15 @@ protected function maybe_parse_repeaters( $meta ) {
}
}
# Inject the repeater values into place
foreach( $repeater_data as $key => $value ) {
foreach( $repeater_data as $key => $repeater_value ) {
$value = array();

foreach( $repeater_value as $row ) {
$row = $this->maybe_parse_repeaters( $row );
$row = $this->maybe_parse_flexible_content( $row );
$value[] = $row;
}

$meta[ $key ] = $value;
}

Expand Down

0 comments on commit 287d3ac

Please sign in to comment.