diff --git a/src/Field/BasicField.php b/src/Field/BasicField.php index a75655d..09a8134 100644 --- a/src/Field/BasicField.php +++ b/src/Field/BasicField.php @@ -115,7 +115,10 @@ public function fetchFieldKey($fieldName) */ public function fetchFieldType($fieldKey) { - $post = $this->post->where('post_name', $fieldKey)->first(); + $post = $this->post->orWhere(function ($query) use ($fieldKey) { + $query->where('post_name', $fieldKey); + $query->where('post_type', 'acf-field'); + })->first(); if ($post) { $fieldData = unserialize($post->post_content);