Hi,
I’ve been looking forward to support for custom MEC layouts for literally years… I’m excited to see this moving forward.
Today I tried to get an archive page working — I’d previously gotten a looper to work with this solution (making sure to return results for all the upcoming+recurring events):
… but now it seems that it severely bogs down the server. And none of the other query-string based answers I found in the Forum provide complete results.
I did find something promising in the Webnus documentation:
…thinking that I might be able to use one of these to generate a custom query function…
$upcoming_events = MEC_main::get_upcoming_events(20); // 20 is number of events
$events = MEC_main::get_shortcode_events(6380); // 6380 is the shortcode ID
…like this?
add_filter(‘cs_looper_custom_mymecevents’, function ($upcoming_events) {
$upcoming_events = MEC_main::get_upcoming_events(20);
return $upcoming_events;
});
…but so far, no luck. Any thoughts?