Title: problem with custom gallery shortcode
Last modified: August 21, 2016

---

# problem with custom gallery shortcode

 *  Resolved [somtam](https://wordpress.org/support/users/somtam/)
 * (@somtam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/)
 * hello everybody,
 * I can’t understand why this plugin make my custom gallery shortcode not works
   correctly.
    In my function file I have:
 *     ```
       remove_shortcode('gallery', 'gallery_shortcode');
       add_shortcode('gallery', 'my_gallery_shortcode');
       ... and the function my_gallery_shortcode which ovveride
       ```
   
 * If I remove the plugin everything is working again.
 * Thanks!
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/#post-3859464)
 * can I know what error are you getting?
 *  [nathanrowe82](https://wordpress.org/support/users/nathanrowe82/)
 * (@nathanrowe82)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/#post-3859531)
 * Hi SomTam,
 * Just ran into the same issue: See Marcus’ response here:
 * [http://wordpress.org/support/topic/fancy-gallery-issue-when-update-event-manager-537?replies=13](http://wordpress.org/support/topic/fancy-gallery-issue-when-update-event-manager-537?replies=13)
 * This did the trick for me!
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/#post-3859551)
 * Thanks, nathanrowe82.
 * SomTam, let us know if that doesn’t work.
 *  Thread Starter [somtam](https://wordpress.org/support/users/somtam/)
 * (@somtam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/#post-3859565)
 * thanks everybody!
 * this solved my problem:
 *     ```
       function my_em_disable_gallery(){
         remove_action('init','em_event_gallery_override_init', 1000);
       }
       add_action('init', 'my_em_disable_gallery');
       ```
   

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

The topic ‘problem with custom gallery shortcode’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [somtam](https://wordpress.org/support/users/somtam/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/problem-with-custom-gallery-shortcode/#post-3859565)
 * Status: resolved