From 287d3acb8874848b1febfa98799525618c976901 Mon Sep 17 00:00:00 2001 From: Radoslav Georgiev Date: Fri, 24 Feb 2017 23:40:49 +0100 Subject: [PATCH] Fixing #18: Parse nested ACF repeaters --- classes/class-acf-helper.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/classes/class-acf-helper.php b/classes/class-acf-helper.php index cc66994..580ad6e 100644 --- a/classes/class-acf-helper.php +++ b/classes/class-acf-helper.php @@ -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; }