• Resolved smartidu

    (@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.

    Review:
    query_posts()

    Thread Starter smartidu

    (@smartidu)

    Thanks for your help!

    thanks

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