Support » Fixing WordPress » post_status

  • Resolved smartidu


    I was looking at the wordpress tables and in wp_posts table I found that there are 3 type of post status,

    – publish
    – inherit
    – revision
    – any more??

    I was wondering what’s the difference among these and how wordpress determines which one to show when a post/blog is viewed? For the same post, I found there are multiple versions with types publish, revision and inherit.

    I was trying to create an extension but need to know how this works so I can pull the correct/latest post uniquely.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Post status:
    publish – A published post or page
    inherit – a revision
    pending – post is pending review
    private – a private post
    future – a post to publish in the future
    draft – a post in draft status
    trash – post is in trashbin (available with 2.9)

    So post_status of ‘publish’ and post_type of ‘post’ for your query.


    Thanks for your help!




Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘post_status’ is closed to new replies.