Title: [Plugin: Portfolio Slideshow] Support for standard wordpress shortcode [gallery]
Last modified: August 20, 2016

---

# [Plugin: Portfolio Slideshow] Support for standard wordpress shortcode [gallery]

 *  Resolved [janubande007](https://wordpress.org/support/users/janubande007/)
 * (@janubande007)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/)
 * Hello Dalton.
 * After searching through over 50 different plugins for Gallery Slideshows, I’m
   finally excited about this one. Excellent job. I’m likely to buy the pro version
   too since it has pretty much all the features I’m looking for.
 * One very important feature I am looking for is to be able to quickly enable an
   existing blog with a decent Slideshow. The existing Blog might have with 1000s
   of pictures, 100s of posts with standard WordPress galleries shortcode [gallery]
   that each may have dozens of pictures.
 * Would you be able to add a checkbox in the options to enable Portfolio Slideshow
   on the standard WordPress shortcode [gallery]? You can keep it as a premium feature
   if you wish, but I need this feature to keep my photo blog archive galleries 
   portable (me being a pro photographer) & to be able to quickly enable my existing
   wordpress galleries to use Portfolio Slideshow.
 * PS…I know I can use shortcode [portfolio_slideshow] with existing galleries, 
   however, that is not portable for blog archives that can build up with 1000s 
   of posts over time, so I’m looking for explicit support for the [gallery] shortcode.
 * If you cannot or rather not add such a feature, can you give me some pointers
   on how I could do this via some quick code changes or other alternatives?
 * Thanks in Advance.
 * [http://wordpress.org/extend/plugins/portfolio-slideshow/](http://wordpress.org/extend/plugins/portfolio-slideshow/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Dalton Rooney](https://wordpress.org/support/users/daltonrooney/)
 * (@daltonrooney)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/#post-3057953)
 * This isn’t foolproof, but adding something like this to your functions.php should
   do the trick:
 *     ```
       function replace_gallery($content) { //finds the gallery shortcode and rewrites it
         $content = preg_replace('/\[gallery/','[portfolio_slideshow',$content,-1);
         return $content;
       }
   
       add_filter('the_content', 'replace_gallery');
       ```
   
 *  Thread Starter [janubande007](https://wordpress.org/support/users/janubande007/)
 * (@janubande007)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/#post-3057957)
 * Hello Dalton,
 * Thanks for the code, altough I asked for it I don’t think I’m ready to keep up
   with updates & maintenance to maintain compatibility. Although I could use a 
   shortcode find & replace plugin-tool like this one ([http://wordpress.org/extend/plugins/safe-search-replace/](http://wordpress.org/extend/plugins/safe-search-replace/))
   that is still iffy in some cases to use when custom gallery shortcodes have their
   own custom attributes & meaning for it. But at least I have a work-around of 
   sorts.
 * Anyway, I’m not looking for find & replace functionality, but rather a slideshow
   plugin that recognizes [gallery] as a valid shortcode and replaces the standard
   wordpress gallery view with its own slidshow-view for it on-the-fly; so long 
   as such an option is enabled via a checkbox for the plugin settings. If you can
   just include such a feature in the plugin & tie that into a checkbox for the 
   plugin settings that would be ideal instead of doing a rather kludgy find & replace
   on the database.
 * I’m not trying to preach to the quire, just a suggestion – This would be a great
   Freemium feature to gets 1000s of Freeloaders to use this plugin, some of who
   will eventually become paid customers.
 * J.
 *  Plugin Contributor [Dalton Rooney](https://wordpress.org/support/users/daltonrooney/)
 * (@daltonrooney)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/#post-3057960)
 * Hi J.,
    If you add the code above to your theme’s functions.php file, you won’t
   have to worry about plugin updates.
 * I’ll consider adding something like this to the plugin, although this is the 
   first request I’ve had in over 200k downloads, so I’m not sure it will be universally
   useful. I think the functions.php solution is probably good enough for most people
   who need this functionality.
 * Dalton
 *  Thread Starter [janubande007](https://wordpress.org/support/users/janubande007/)
 * (@janubande007)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/#post-3057962)
 * Hello Dalton, Thanks for considering to add such a feature. I’d love to see it.
 * I don’t have any functions.php of my own, since I’m using a theme that I’ve downloaded
   from wordpress.org theme repository which I may change anytime & use different
   themes on different sites/sub-domains. I’d have to implement a child-theme to
   properly do the work so that it can survive theme-updates instead of plugin-updates.
   🙂
 * If I was a full-time website developer, I’d consider such an endaevour, but I’m
   a photographer just trying to get some of my gallery sites up in wordpress.
 * I hope you can add this feature soon – may be it’ll get your plugin past 1-million
   downloads! (assuming you tag and keyword the description appropriately)
 * Thanks in Advance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Portfolio Slideshow] Support for standard wordpress shortcode[
gallery]’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [janubande007](https://wordpress.org/support/users/janubande007/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-portfolio-slideshow-support-for-standard-wordpress-shortcode-gallery/#post-3057962)
 * Status: resolved