• I’m trying to query the list of recurring events with a custom loop in my Page Builder. The problem is that only events and locations are listed as queryable custom post types. Recurring events on the other hand is not listed.

    Upon checking the list of custom post types, I found that event-recurring is not publicly queryable. How do I make it publicly queryable?

Viewing 1 replies (of 1 total)
  • Recurring events are not really “events”, they act more as a grouping or parent for the occurrences (events) of the recurring event. By default, the events listing will show each occurrence as a separate event.

    Are you looking to show a list of events that are occurrences of a recurring event or are you looking to show the recurring events as list?

    Both are possible.

    You can either use a built-in template tag or shortcode to display the events.

    Template Tag

    em_events( $args ) or em_get_events( $args )

    https://wp-events-plugin.com/documentation/template-tags/

    Shortcode

    [events_list]

    https://wp-events-plugin.com/documentation/shortcodes/

    To display only events that are occurrences of a recurring event:

    em_events( array( 'recurrences' => 1 ) );

    [events_list recurrences=1]

    To display only events that are occurrences of a recurring event and grouped by recurring event id

    em_events( array( 'recurrences' => 1, 'groupby' => 'recurring_id' ) );

    [events_list recurrences=1 groupby='recurring_id']

    To display recurring events.

    em_events( array( 'recurring' => 1, ) );

    [events_list recurring=1]

    See full list of search attributes here:

    https://wp-events-plugin.com/documentation/event-search-attributes/

Viewing 1 replies (of 1 total)
  • The topic ‘Querying Recurring events’ is closed to new replies.