How to get all posts with any post status in WordPress?

Posted by Prem Tiwari | Updated on

You can use the post_status parameter:

I’m not sure that it accepts ‘any’ so use an array with all of the statuses you want:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers