From 2a2e15068c1bd1d4a9a1ed14d9d2a1367a1a9796 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 20 Jan 2025 14:51:59 +0100 Subject: [PATCH] update to handle correctly the post status --- includes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api.php b/includes/api.php index 8083ca6..b869b83 100644 --- a/includes/api.php +++ b/includes/api.php @@ -57,7 +57,7 @@ function build_search_artisan_posts_cards($request) } $args = array( - "status" => "publish", + "post_status" => "publish", "post_type" => "artisans", "posts_per_page" => -1, "paged" => $activePage, @@ -123,7 +123,7 @@ function debugQueryTest() { $args = array( - "status" => "publish", + "post_status" => "publish", "post_type" => "artisans", "posts_per_page" => -1, // "tax_query" => $taxQuery,