diff --git a/src/AdvancedCustomFields.php b/src/AdvancedCustomFields.php index 9aad0d8..2801104 100644 --- a/src/AdvancedCustomFields.php +++ b/src/AdvancedCustomFields.php @@ -55,6 +55,6 @@ public function __call($name, $arguments) $field = FieldFactory::make($arguments[0], $this->post, snake_case($name)); - return $field->get(); + return $field ? $field->get() : null; } }