handling post_status in initial query
This commit is contained in:
parent
ccaafa7725
commit
66c53f0d49
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user