Recurring Events – show only one instance in the_loop
-
Hello again,
I want an archive page where all events are displayed. This is no problem, but now I need a loop the fetch only one event of each recurring event.
Is there a way to include this
echo EM_Events::output( array('groupby'=>'recurrence_id', 'groupby_orderby'=>'event_start_date,event_start_time'));
into the loop?
<?php if ( have_posts() ) : ?> <?php while (have_posts()) : the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part( 'template-parts/content-archive', get_post_type() ); endwhile; the_posts_navigation(); else : get_template_part( 'template-parts/content', 'none' ); endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Recurring Events – show only one instance in the_loop’ is closed to new replies.