Title: [Plugin: Frontpage-Slideshow] Bug in shortcode
Last modified: August 19, 2016

---

# [Plugin: Frontpage-Slideshow] Bug in shortcode

 *  [vincex](https://wordpress.org/support/users/vincex/)
 * (@vincex)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-bug-in-shortcode/)
 * There is a bug in category options loading using shortcode tag.
    Just replace
   the function
 *     ```
       function 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)

 *  [JamesShijie](https://wordpress.org/support/users/jamesshijie/)
 * (@jamesshijie)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-bug-in-shortcode/#post-1662631)
 * Thank you so much for this fix! I was going CRAZY wondering what was wrong. I’m
   indebted to you forever. 🙂

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Frontpage-Slideshow] Bug in shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontpage-slideshow.svg)
 * [Frontpage-Slideshow](https://wordpress.org/plugins/frontpage-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontpage-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontpage-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/frontpage-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontpage-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontpage-slideshow/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [JamesShijie](https://wordpress.org/support/users/jamesshijie/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-bug-in-shortcode/#post-1662631)
 * Status: not resolved