Article suggestions
  1. Home
  2. smartsites
  3. Posts Slider Shortcodes

Posts Slider Shortcodes

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
Can't find what you're looking for? Get in touch
How can we help?
Send your question below and we'll get back to you as soon as possible.
Cancel
translation missing: en.kb.default.contact_form_error
×
Thanks for your message!
Thanks for your message!
×