Title: Event Manager Shortcode Performance Issues
Last modified: August 20, 2016

---

# Event Manager Shortcode Performance Issues

 *  Resolved [CTSiwebdev](https://wordpress.org/support/users/ctsiwebdev/)
 * (@ctsiwebdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/)
 * I’m attempting to make calls to the events array to grab only the events with
   a certain style (Display on front page) checked. I’m using the suggested EM shortcodes.
   This code is used on a separate page from the events page.
 * Here’s a sampling of the code that I have right now:
 *     ```
       $eImg = do_shortcode("[events_list style=1 scope='future'] #_EVENTIMAGEURL[/events_list]");
       $eMonth = do_shortcode("[events_list style=1 scope='future']#_{M}[/events_list]");
   
       <img src="<?php echo $eImg ?>" />
       <div class="eventMonth"><?php echo $eMonth ?></div>
       ```
   
 * This works. However, the site is so slow with this code in place. If I comment
   out the code it speeds the site right back up.
 * Is there a better/more efficient way to make these calls than the EM shortcodes?
 * Thanks in advance for any advice you’re able to give.
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519145)
 * hi,
 * have you tried Events > Settings > General > Performance Optimization ? e.g. 
   Thumbnails
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519156)
 * how many events are you showing on there? If you have loads of events, then it
   will inevitably be slow. Try using pagination e.g.
 * [events_list style=1 scope=’future’ limit=”10″ pagination=”1″]…
 *  Thread Starter [CTSiwebdev](https://wordpress.org/support/users/ctsiwebdev/)
 * (@ctsiwebdev)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519232)
 * agelonwl,
    Thanks for the suggestion. I’ve tried messing with those settings 
   and none of them make a difference.
 * Marcus,
    In total we have >2k events. However, with the above code we’re wanting
   to only ever show one (1) event. I tried implementing both limit and pagination
   as you mentioned above but this either has no impact or fails to show the event.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519234)
 * is it possible to post sample links for us to see and analyze?
 * also, you might want to check this articles:
 * [http://wp-events-plugin.com/documentation/optimization-recommendations/](http://wp-events-plugin.com/documentation/optimization-recommendations/)
   
   [http://wp-events-plugin.com/documentation/general-optimization-recommendations/](http://wp-events-plugin.com/documentation/general-optimization-recommendations/)
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519240)
 * hmm…. are you also using customizations to get that styles attribute going? If
   so, what are you using specifically (in the tutorials there’s two ways to go 
   about it for example).
 * does it speed up without usage of style=”1″ ? or if you use a simple format such
   as #_EVENTNAME?
 *  [Nilanjib Roy](https://wordpress.org/support/users/nilanjib-roy/)
 * (@nilanjib-roy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519280)
 * Hi All,
    using #_EVENTIMAGEURL is showing event’s featured images url only. I
   need to show Events thumbnail.. Can you guys help..
 *  [Nilanjib Roy](https://wordpress.org/support/users/nilanjib-roy/)
 * (@nilanjib-roy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519281)
 * Oh got it..
    using #_EVENTIMAGE{100,100} works perfectly..

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

The topic ‘Event Manager Shortcode Performance Issues’ 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/)

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [Nilanjib Roy](https://wordpress.org/support/users/nilanjib-roy/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/event-manager-performance-issues/#post-3519281)
 * Status: resolved