Support » Plugin: Events Manager » Event Manager Shortcode Performance Issues

  • Resolved CTSiwebdev


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi,

    have you tried Events > Settings > General > Performance Optimization ? e.g. Thumbnails

    Plugin Author Marcus


    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″]…

    Thanks for the suggestion. I’ve tried messing with those settings and none of them make a difference.

    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.

    is it possible to post sample links for us to see and analyze?

    also, you might want to check this articles:

    General Optimization Recommendations

    Plugin Author Marcus


    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?

    Hi All,
    using #_EVENTIMAGEURL is showing event’s featured images url only.
    I need to show Events thumbnail..
    Can you guys help..

    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.