WP Orbit Slider Shortcodes and Template Usage

Basic shortcode: [orbit-slider category="my_category" numberposts="3"]  The slider is responsive, therefore will stretch to the surrounding div. The featured thumbnail is set to a width of 540px and a height of 450px. It is also set to hard-crop. If your wish to have custom dimensions…

1. In your functions.php add:

Note: true parameter forces hard crop of image.

2.Then in the slider options ‘Advanced Settings’ select ‘Custom Size’.

Template usage:

1 Comment

  1. Vikram on October 7, 2012 at 3:44 am

    Thanks for this handy code.

Leave a Comment