WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. CTSiwebdev
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    hi,

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

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    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.

  5. agelonwl
    Member
    Posted 1 year ago #

    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/general-optimization-recommendations/

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic