Custom WP_Query with complex ‘post_status’ argument
Things to note: It depends on what type of page the query is happening If you’re logged in, private post status will be drawn in for example. Use a filter As the status is something that gets added to the WHERE clause, you have a pretty specific filter that you can use to alter the … Read more