Title: [Plugin: NextGEN Gallery] Shortcode Slideshow conflicts with Jetpack by WordPress.com plugin
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Shortcode Slideshow conflicts with Jetpack by WordPress.com plugin

 *  Resolved [bestsaigon](https://wordpress.org/support/users/bestsaigon/)
 * (@bestsaigon)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/)
 * I found that Jetback is processing shortcode [slideshow] and generate a error
   in result webpage before NextGen can reach this shortcode. So, we alway receive
   a blank space!
 * Because Jetpack is official support by WordPress so I modified NextGen 😛
 * By change shortcode of NextGen, I can fix this error:
 * Step 1: open file </wp-content/plugins/nextgen-gallery/lib/>shortcodes.php
 * Step 2: change shortcode name [slideshow] to [ngslideshow]
 * Line 29: add_shortcode( ‘slideshow’, array(&$this, ‘show_slideshow’ ) );
    => 
   add_shortcode( ‘ngslideshow’, array(&$this, ‘show_slideshow’ ) );
 * Line 100: if ( stristr( $content, ‘[slideshow’ )) {
    => if ( stristr( $content,‘[
   ngslideshow’ )) {
 * Line 101: $search = “@(?:<p>)*\s*\[slideshow\s*=\s*(\w+|^\+)(|,(\d+)|,)(|,(\d
   +))\]\s*(?:</p>)*@i”;
    => $search = “@(?:<p>)*\s*\[ngslideshow\s*=\s*(\w+|^\+)(
   |,(\d+)|,)(|,(\d+))\]\s*(?:</p>)*@i”;
 * Line 108: $replace = “[slideshow id=\”{$match[1]}\” w=\”{$match[3]}\” h=\”{$match[
   5]}\”]”;
    => $replace = “[ngslideshow id=\”{$match[1]}\” w=\”{$match[3]}\” h=\”{
   $match[5]}\”]”;
 * Step 3: in posts, change all shortcodes [slideshow id=x] to [ngslideshow id=x]
   and it will work like a charm!!!
 * Sorry for my bad English.
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/?output_format=md)
2

 *  [cnymike](https://wordpress.org/support/users/cnymike/)
 * (@cnymike)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/page/2/#post-2034816)
 * Yes, it is slightly easier. (I did not test it either.) However, as with the 
   NextGen hack, it will also be overwritten during any subsequent Jetpack update
   until a permanent fix is implemented.
 * So now we have two hacks, one that works and one that -may- work from which to
   choose so that we can temporarily fix the problem.
 * It’s a start.
 *  [cnymike](https://wordpress.org/support/users/cnymike/)
 * (@cnymike)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/page/2/#post-2034817)
 * Good news. Here is the response I got from Jetpack support.
 * > “Thanks for letting us know about this conflict.  We will include a fix
   >  for
   > this in the next version of Jetpack, which will probably come out in a few 
   > weeks.
   > In the meantime, you can have Jetpack active without loading Jetpack’s
   >  shortcodes.
   > Install and Activate Jetpack, then go to your blog’s admin -> Jetpack and click
   > the “Learn More” button on the Shortcodes box.  Then click the “Deactivate”
   > button that appears.
   > Obviously, that’s not an ideal solution since it disables *all* of
   >  Jetpack’s
   > shortcodes, not just the conflicting one.”

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/?output_format=md)
2

The topic ‘[Plugin: NextGEN Gallery] Shortcode Slideshow conflicts with Jetpack 
by WordPress.com plugin’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 17 replies
 * 7 participants
 * Last reply from: [cnymike](https://wordpress.org/support/users/cnymike/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-slideshow-conflicts-with-jetpack-by-wordpresscom-plugin/page/2/#post-2034817)
 * Status: resolved