Slideshow shortcode

The [slideshow] shortcode is used to make Spotlight Rotation appear anywhere in your site.

By default Spotlight Rotation is set to appear on the Frontpage, however you can insert it on any page by using a shortcode:

[slideshow width="560" height="300"] 

(Note: width and height parameters correspond to image width and size).

Parameters:

  • width="pixel dimesions"
  • height="pixel dimesions"
  • category="category slug"
  • lookandfeel="Type of slideshow to use. Possible values include: standard, gallery, blank, multi, transparent, basic-sliding (See How to insert Spotlight rotation in a page for the look-and-feel previews)"
  • maxslides="Number of slides"
  • timeout="Number of seconds between slides"
  • speed="Speed of slide transition in miliseconds"
  • effect= Type of transition effect. Possible values include: fade, growX, scrollHorz, turnLeft, uncover"
  • slider_margin="true/false"
  • slider_remove_link_to_image="true/false"
  • read_more_text="Default - Read More - Change to customize"
  • order_by="date,title,meta value"
  • order="asc, desc"
  • remove_link_to="true/false"

Sample Shortcodes:

[slideshow width="560" height="300" category="spotlight" lookandfeel="gallery"]
[slideshow width="560" height="300" category="news" lookandfeel="multi" timeout="5"]
Sample Slideshow Shortcode
The slideshow on the page

For additional information on how to add or update spotlight images to posts, please refer to sample instructions provided by the UBC Library at http://wiki.ubc.ca/Library:WordPress_and_Wiki_Tutorial#Create_a_Carousel

source: http://wiki.ubc.ca/Documentation:UBC_Content_Management_System/CLF_Theme/Slideshow
Did you find this content useful?
50 Yes

4 responses to “Slideshow shortcode”

  1. jpagnott

    Are these shortcodes still valid? When I use this I don’t seem to have any control of the size of the slideshow. The height and width parameters are ignored. Also, the slideshow navigation controls and the white divider line to the left of the controls are not aligned properly.

  2. jpagnott

    Is there a way to control the height and width of the slideshow?

  3. jpagnott

    If we don’t want the slideshow items to link to anything, how do we accomplish that?

  4. Yvonne Chan

    One of my users wants to re-order the posts; she thought there used to be a way to change the order of the images rotating at without changing the date(s) of the posting(s).

    Can someone clarify how to re-order the posts please?

Leave a Reply

You must be logged in to post a comment.