diff --git a/htdocs/content/themes/bookstore/resources/models/Faqs.php b/htdocs/content/themes/bookstore/resources/models/Faqs.php index 1259de0..cd603fb 100644 --- a/htdocs/content/themes/bookstore/resources/models/Faqs.php +++ b/htdocs/content/themes/bookstore/resources/models/Faqs.php @@ -18,7 +18,7 @@ class Faqs */ public function all() { - $query = new WP_Query(array( + $query = new \WP_Query(array( 'post_type' => $this->slug, 'posts_per_page' => -1, 'post_status' => 'publish', @@ -27,4 +27,4 @@ public function all() return $query->get_posts(); } -} \ No newline at end of file +}