We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a54a8d commit 02e71a5Copy full SHA for 02e71a5
classes/query.php
@@ -125,7 +125,7 @@ public static function get_acf_post( $id, $args = array() ) {
125
}
126
127
// A repeater field has relational posts
128
- if ( is_array( $field ) && is_array( $field[0] ) ) {
+ if ( is_array( $field ) && count( $field ) > 0 && is_array( $field[0] ) ) {
129
130
// Follows the nested structure of a repeater
131
foreach ( $field as $idx => &$repeater ) {
0 commit comments