diff --git a/src/Field/FlexibleContent.php b/src/Field/FlexibleContent.php index 2b13389..2fce43d 100644 --- a/src/Field/FlexibleContent.php +++ b/src/Field/FlexibleContent.php @@ -99,7 +99,7 @@ protected function fetchFields($fieldName, Builder $builder) $post = $this->post->ID != $meta->post_id ? $this->post->find($meta->post_id) : $this->post; $field = FieldFactory::make($meta->meta_key, $post); - if (!array_key_exists($id, $blocks)) { + if ($field === null || !array_key_exists($id, $blocks)) { continue; }