Events Manager
[resolved] Event Manager Shortcode Performance Issues (8 posts)

  1. CTSiwebdev
    Posted 3 years ago #

    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.


  2. agelonwl
    Posted 3 years ago #


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

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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"]...

  4. CTSiwebdev
    Posted 3 years ago #

    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.

  5. agelonwl
    Posted 3 years ago #

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

    also, you might want to check this articles:


  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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?

  7. Nilanjib Roy
    Posted 3 years ago #

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

  8. Nilanjib Roy
    Posted 3 years ago #

    Oh got it..
    using #_EVENTIMAGE{100,100} works perfectly..

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic