update to handle correctly the post status
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-01-20 14:51:59 +01:00
parent 39560dc2cf
commit 2a2e15068c

View File

@ -57,7 +57,7 @@ function build_search_artisan_posts_cards($request)
} }
$args = array( $args = array(
"status" => "publish", "post_status" => "publish",
"post_type" => "artisans", "post_type" => "artisans",
"posts_per_page" => -1, "posts_per_page" => -1,
"paged" => $activePage, "paged" => $activePage,
@ -123,7 +123,7 @@ function debugQueryTest()
{ {
$args = array( $args = array(
"status" => "publish", "post_status" => "publish",
"post_type" => "artisans", "post_type" => "artisans",
"posts_per_page" => -1, "posts_per_page" => -1,
// "tax_query" => $taxQuery, // "tax_query" => $taxQuery,