diff --git a/src/Field/BasicField.php b/src/Field/BasicField.php index bae10ae..b1b12d4 100644 --- a/src/Field/BasicField.php +++ b/src/Field/BasicField.php @@ -82,7 +82,8 @@ public function __construct(Model $post) public function fetchValue($field) { $postMeta = $this->postMeta->where( - $this->getKeyName(), $this->post->getKey() + $this->getKeyName(), + $this->post->getKey() )->where('meta_key', $field)->first(); if (isset($postMeta->meta_value) and ! is_null($postMeta->meta_value)) {