From 18f82bcc86142f882bd1c934f42d3ca15d4b97f5 Mon Sep 17 00:00:00 2001 From: Ramon Villain Date: Sun, 12 Mar 2017 19:23:05 -0300 Subject: [PATCH] Fixing WP_Query example --- htdocs/content/themes/bookstore/resources/models/Faqs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}