How can we help?

Get help straight from our team...
Article suggestions
  1. Home
  2. smartsites
  3. Posts Slider Shortcodes

Posts Slider Shortcodes

Updated on September 20, 2018

The Posts Slider shortcode is a great way of displaying the latest posts from a category in an attractive and modern way.



To add a posts slider to a page, post or widget simply add the code below and customise its attributes to suit your needs.

 

[posts-slider category="science-department" posts_per_slide="2" hover_colour="#4cc4e5"]

 

Attributes

category
This is the slug for the category you wish to use for the slider

posts_per_slide
The number of posts displaying on each slide, this defaults to 3 but can be set as either 1,2,3 or 4

hover_colour
This should be a colour hex code and will be the colour accent used when hovering and clicking on posts in the slider

 
Thank you for leaving a rating!
Did you find this article helpful?
0 out of 0 people found this article helpful so far