MEC repeating events display

Hi,
We have a number of events created in MEC, and some of which are repeating. We want to display these events in a row, 4 across - similar in style and size to Classic Posts - and with the next four event occurrences being displayed.

Have you any ideas how this could be achieved please?

Many thanks

Alex

Hi Alex,

Thank you for writing in, please navigate to M.E. Calendar > Shortcodes, and look for the pre-made Upcoming events (Grid) shortcode.



You can also edit that shortcode if you want to show 4 events in a ROW, by default that only shows 3.

You can then paste a shortcode on your page using the Content Area element.

Hope it helps,
Cheers!

Hi, and very many thanks for your response. I was aware of the grid facility but what I was trying to achieve was similar is size and look as the Recent Posts function which is very neat

Thanks

Alex

Hi Alex,

While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

Please add this to your child theme’s functions.php file.

add_filter( 'cs_recent_posts_post_types', 'x_recent_post_types' );
function x_recent_post_types(){
  return array('post' => 'post', 'mec-events' => 'mec-events');
}

That should add the M.E Calendar events on the Recent Posts’ Post Type option.

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.