One post for recurring events
-
Hi there,
On my home page I am showing posts from different post types, these are currently standard posts and events. The trouble is that recurring events are showing for every separate instance. I would like to show only one per recurring event entry.
I have read this support thread and have used this on my events page – https://www.ads-software.com/support/topic/plugin-events-manager-list-recurring-events-as-one-event?replies=11
My question is, how can I do the same on my home page where I have this –
<?php if ( 'event' == get_post_type() ) : ?> <?php global $post; $EM_Event = em_get_event($post->ID, 'post_id'); ?> <article class="bit-4 eventPost <?php echo $EM_Event->output('#_CATEGORYNAME'); ?> grid-sizer grid-item"> <div class="eventInner homePost"> <p class="postLabel">Event</p> <h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1> <p class="postedOn"><?php echo $EM_Event->output('#_{d M Y} #@_{- d M Y}'); ?></p> <p><?php echo $EM_Event->output('#_EVENTEXCERPT{12,...}'); ?></p> </div> </article> <?php endif; ?>
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘One post for recurring events’ is closed to new replies.