What is Post Status in WordPress?
Post status is the state of a post or page. It is saved in the post_status column of the wp_posts table.
| Status | Meaning |
|---|---|
| publish | Live and visible to everyone |
| draft | Saved, not published |
| pending | Waiting for review |
| future | Scheduled for a future date |
| private | Visible only to logged in admins and editors |
| trash | In the trash (restore it or delete it forever) |
| auto-draft | Created automatically when you open the add new screen |
You can see the status of your posts with WP-CLI:
Terminal output
$ wp post list –post_type=post,page –fields=ID,post_title,post_status
ID post_title post_status
1 Hello world! publish
2 Sample Page publish
3 Privacy Policy draft
Learn more about the similar topics:
| Tutorials |
|---|
| WordPress Posts |
| WordPress Pages |
| WordPress Block Editor (Gutenberg) |
| WordPress Categories and Tags |
| WordPress Media Library |
| WordPress Comments |
| Exercises & Assignments |
|---|
| Add categories, a child category and a tag to a post |