Display only one event from a series of upcoming events

WordPress Event Management, Calendars & Registration Forums Frontend Submissions Display only one event from a series of upcoming events

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 6 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19506

    Hi,

    I am using the following snippet to display a list of upcoming events that have been submitted by a user on their profile.

    function custom_shortcode() {
        $user_id = bp_displayed_user_id();
        $events = do_shortcode( '[eo_events author='.$user_id.']' );
        return $events;
    }
    add_shortcode( 'eo_custom_shortcode', 'custom_shortcode' );
    

    However for recurring events e.g. a once montly event, how do I make it so it only displays the next months events rather than every months recuring event?

    Lukas Feddern
    #19509

    You can use the group_events_by option (see http://docs.wp-event-organiser.com/shortcodes/events-list/)

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.