handling post_status in initial query

This commit is contained in:
Antoine M 2025-01-20 12:49:02 +01:00
parent ccaafa7725
commit 66c53f0d49

View File

@ -6,7 +6,7 @@ get_header();
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null; $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
$initialPosts = new WP_Query([ $initialPosts = new WP_Query([
"status" => "publish", "post_status" => "publish",
"post_type" => "artisans", "post_type" => "artisans",
"posts_per_page" => -1, "posts_per_page" => -1,
"paged" => 1, "paged" => 1,