Exclude a protected post in a query loop
-
Hello, is there a way to exclude the protected posts on a query ?
I tried “has_password” false, but I guess the plugin is not using that :
$args = [ 'paged' => $page, 'post_type' => 'post', 'post_status' => 'publish', 'has_password' => FALSE, 'posts_per_page' => $qty, 'tax_query' => $tax_qry, ];
Any tips ?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude a protected post in a query loop’ is closed to new replies.