• Resolved CTSiwebdev

    (@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.

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

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Event Manager Shortcode Performance Issues’ is closed to new replies.