You can filter Views Queries by Post Status. This allows you to load only contents of the targeted post status and also includes the custom post statuses.
In the View Query Filter section, click on Add filter. You’ll see different filter options. Choose “Post Status” and this dialog will be shown:
The post status can be set by one of the following:
Post Status Setting | Usage |
---|---|
publish | Published contents, viewable by anyone. |
draft | Incomplete contents, viewable by anyone with proper user level. |
future | Scheduled contents, to be published on a future date. |
inherit | Used with a child post contents (such as Attachments and Revisions) to determine the actual status from the parent post. |
any | Contents of any status. |
pending | Contents that are awaiting publishing by a user with the publish_posts capability (typically a user assigned the Editor role). |
auto-draft | Revisions that WordPress saves automatically while you are editing. |
private | Contents viewable only to WordPress users at Administrator level. |
trash | Contents in the Trash which were deleted but not yet permanently. |