I am using the plugin version 0.6.8 and it works fine so far but I wanted to have sliders, which autoplay and sliders which don’t. So I tried to put “autoPlay=true” into the shortcode like this:
[anything_slides cat=philosophie-slider width=994 height=436 delay=2000 resume=5000 animation=750 autoPlay=true order=ASC orderby=menu_order theme=mycustomthemename]
but this does not work, probably because WordPress lowers all param strings from the shortcode.
To get this to work, you have to change line 261 in file jtd-anything-slider.php from
$autoPlay = ( isset( $attr['autoPlay'] ) ) ? $attr['autoPlay'] : ( ( $options['autoPlay'] ) ? $options['autoPlay'] : 'true');
$autoPlay = ( isset( $attr['autoplay'] ) ) ? $attr['autoplay'] : ( ( $options['autoPlay'] ) ? $options['autoPlay'] : 'true');
I don’t like to edit plugins due to removing all code changes on update, so if someone knows a better way to solve this I’d like to see it in here :-)!
- The topic ‘[Plugin: AnythingSlider for WordPress] Autoplay for specific sliders via shortcode param does not wo’ is closed to new replies.