[Plugin: Frontpage-Slideshow] Bug in shortcode
-
There is a bug in category options loading using shortcode tag.
Just replace the functionfunction frontpageSlideshow_dedicated_shortcode ($attributes, $content=null) { ... original code here }
with this one
function frontpageSlideshow_dedicated_shortcode ($attributes, $content=null) { global $fs_already_displayed; $options = frontpageSlideshow_get_options(); // get default or tweaked options // dont do anything if // - the slideshow has already been displayed // - the slideshow has not been activated // - the shortcode option is not activated // parse the other eventually nested shortcodes and display the enventualy specified content if ($fs_already_displayed || !$options['values']['fs_is_activated'] || $options['values']['fs_insert']!='shortcode') return do_shortcode($content); if(!empty($attributes)) { $options['values'] = shortcode_atts($options['values'], $attributes); $options['values']['fs_cats'] = explode(',',$attributes['fs_cats']); } $force_display_if_shortcode = true; //frontpageSlideshow_header(true,$options); return frontpageSlideshow('',true,$options); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Frontpage-Slideshow] Bug in shortcode’ is closed to new replies.