The Slider
The Slider is a catchy featured content slider ideal for showcasing your products and services.
Showing off the best content of your website or blog in a nice intuitive way will surely catch more eyeballs. Using an auto-playing content slider is the one of techniques to show your featured content. It saves you space and makes for a better user experience, and if you add a pinch of eye candy to it, then there’s no looking back.
Where can I get it?
You can download it from the WordPress repository or install it via your WordPress plugins control panel.
Including the slider on your pages
Getting started
To test the set up, include the short code [the-slider] anywhere on a page. This should show you the demo slider.
The syntax
If that works, we can move to the next step. You can add parameters to the short code to control the behaviour of the slider, the syntax is as follows:
[the-slider parameter1=value1,parameter2=value,paramter3=value3,...]
The parameters
- - cat: post category from which to select the posts
- - max: maximum number of posts to include
Examples
[the-slider cat=3,max=4] will include 4 posts of post category 3 in the slider
Including the slider in your theme
To include the slider in your theme, include the following code:
<?php the_slider(); ?>
You can use the same parameters as described here above and pass them as an array to the function. So for example to display 4 posts from category 3 in the slider, you can use:
<?php the_slider(array("cat" => 3,"max" => 4)); ?>
FAQ
Can I include the slider multiple times on a page?
Yes, absolutely, you can put the slider short code anywhere on a page and multiple times, using different parameters for each slider.
How do I add images?
Simply set a featured image for your post. The slider will pick up the featured image and display it. Best sizes are 400px by 250 px.


