1. Home
  2. Docs
  3. Responsive Posts Carousel
  4. Shortcode Attributes
  5. Date Parameters

Date Parameters

You can display the posts associated with a certain time and date period regardless of the carousel settings using the following attributes in the shortcode.

  • year – 4 digit year (e.g. 2011)
  • monthnum – Month number (from 1 to 12)
  • w – Week of the year (from 0 to 53)
  • day – Day of the month (from 1 to 31)
  • hours – Hour (from 0 to 23)
  • minute – Minute (from 0 to 60)
  • second – Second (0 to 60)
  • m – YearMonth (For e.g.: 201307)

Examples

[wcp-carousel id="767" year=2012 monthnum=12 day=12]

The above shortcode will display the posts dated December 12, 2012.