Add a jQuery Coda Slider in no conflict mode to any WordPress page, post or custom post type using shortcodes or template tags.
WP Coda Slider is a plugin that adds Niall Doherty's jQuery Coda-Slider v2.0 plugin to WordPress using shortcodes. The only change made to the original jQuery plugin was to make it compatible with WordPress's built in jQuery in no-conflict mode. This means that it wont conflict with other WordPress plugins and doesn't add unnecessary js files to your site. The js and CSS are only called on pages that contain the plugin shortcode.
The WP Coda Slider Demos can be found at http://wp-performance.com/wp-coda-slider/
The short code accepts the following arguments: id, cat, show, args. id= a unique name for each slider that will be assigned as the div id cat= the category containing the posts to display in the slider show= the number of posts to show in the slider args= the settings for the slider which can be found at http://www.ndoherty.biz/forums/viewtopic.php?f=4&t=2
[wpcodaslider id=myslider cat=4 show=6 args=autoSlide:true, dynamicTabs:false, autoSlide:true]
This would add a slider with the <div id="myslider"> showing 6 posts from the category id of 6 with dynamic tabs set to false, auto slide set to true with an autoslide interval of 8000 milliseconds.
Add <?php if ( function_exists('c3m_wpcodaslider') ){
c3m_wpcodaslider($id, $cat, $show, $args);} ?>
to any of your themes templates.
you must supply the variables when you add the function to your template.
<?php if ( function_exists('c3m_wpcodaslider') ) {
c3m_wpcodaslider('myslider', '81', '4', 'dynamicArrows:false');} ?>
this would add a slider with the id of myslider and show 4 posts from category 81 with dynamic arrows set to false. all the variables must be present and in the same order.
Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-5-25
Downloads: 15,321




