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

Category Parameters

You can display the posts associated with a single category or certain categories regardless of the carousel settings using the following attributes.

  • cat – Provide category id or comma-separated list of IDs.
  • category_name – Provide category slug.


[wcp-carousel id="767" cat="2,6,17,38"]

The above shortcode will display the posts associated with the categories having IDs 2,6,17 and 38.

[wcp-carousel id="767" category_name="staff,news"]

Above will display posts having Staff or News category slug (staff or news).

[wcp-carousel id="767" category_name="staff+news"]

and above will display posts having both the categories (staff and news).