1. Home
  2. Docs
  3. Responsive Posts Carousel
  4. Shortcode Attributes
  5. Status Parameter

Status Parameter

You can display posts associated with a certain status using attribute post_status.

Possible Values

  • publish – a published post or page.
  • pending – the post is pending review.
  • draft – a post in draft status.
  • future – a post to publish in the future
  • any – retrieves any status except those from post statuses with ‘exclude_from_search’ set to true (i.e. trash and auto-draft).

Example

[wcp-carousel id="767" post_status="draft"]

Above shortcode will display the posts in draft status.