Bright Labs

Do recurring events in The Events Calendar create separate WordPress posts?

Running a direct database query on a recurring event and only seeing one ID? No, recurring events in The Events Calendar do not create separate WordPress posts for each date. Under Custom Tables v1 (CT1), there is always a single post entry in the posts table for both Single and Recurring Events. Instead, CT1 assigns each occurrence a provisional post ID so WordPress can treat it as a post.

If you're on the free version of The Events Calendar, you don't have access to the recurring event feature. Here's how CT1 stores events, how to check your database with wp shell, and how to create Single Event posts when you need one post per date.

How CT1 stores recurring events vs single events

In the CT1 implementation, CT1 uses custom tables for Events and Occurrences, and an Event is a template for its Occurrences. A Single Event occurs once. A Recurring Event occurs multiple times, such as daily, 10 times, in the CT1 example. Either way, there is always a single post entry in the posts table for both Single and Recurring Events.

Because occurrences don't get separate rows in the posts table, CT1 assigns a provisional post ID to an occurrence so it can be treated as a WordPress post. That provisional ID behaves like a real post ID for standard post lookups. In the CT1 example with 2 Event posts in the database, you can fetch _EventStartDate using get_post_meta( 10000004, '_EventStartDate', true );. You can also get post_title using get_post( 10000004 )->post_title;.

Here's the catch: this works because CT1 pre-fills WordPress caches with the Occurrences data. As a result, provisional IDs pass almost every check that is not a direct database query. CT1 also uses Series, which is a custom post type where related events are grouped. Recurring Events have the Series post ID as their post_parent value.

How to check which real posts exist in your WordPress database

If you want to check which real Event posts exist in your database, start with wp shell. The wp shell command loads a PHP REPL interpreter with WordPress and all active plugins pre-loaded, so you can try out the code examples against your site.

List real tribe_events post IDs in wp shell
$wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE POST_TYPE = 'tribe_events'" );

A direct database query skips the query filters applied by CT1 and returns the IDs of the real Event posts in the database. If you have 2 Event posts in the database, that $wpdb query returns only those real Event post IDs even when occurrences use provisional IDs like 10000004. Run that check first when SQL results look shorter than your calendar.

What the free The Events Calendar plugin supports

Users ask on the WordPress.org support forum whether The Events Calendar can repeat events or if they need to create a new one every time. In the free version of The Events Calendar, you won't have access to the recurring event feature. Events Calendar Pro runs alongside The Events Calendar and adds recurring events, additional calendar views, calendar shortcodes, advanced widgets, and custom event fields.

The Events Calendar free plugin lets you create and manage an events calendar on your WordPress site. It includes saved venues and organizers, event categories and tags, Google Calendar and iCal exporting, WP REST API endpoints, and JSON-LD structured data for SEO. Each Single Event occurs once and has a single post entry in the posts table with tribe_events as its post type.

Creating a weekly series as ordinary event posts

Create single events programmatically in wp shell

If you want to create each date as a Single Event programmatically, the API to create, read, update, and delete Events has one entry point: the tribe_events() function. Inside wp shell, pass an $args array with title, status, start_date, end_date, and timezone into tribe_events()->set_args( $args )->create()->ID.

Create a single event via tribe_events()
$single_event = tribe_events()->set_args( $args )->create()->ID;

Each call creates a Single Event that occurs once, with a single post entry in the posts table. That works well when you want to script individual dates from the command line without relying on provisional occurrence IDs. Since each Single Event has its own post entry, a direct $wpdb query against $wpdb->posts returns its ID.

Generate ordinary event posts from the editor with RecurKit

If you run a church, club, or studio calendar and want to create repeating dates in the WordPress editor instead of a terminal, we built RecurKit at Bright Labs for the free The Events Calendar. You tick Repeat this event in the event editor, pick your weekdays and when the series ends, and publish once.

RecurKit creates every occurrence as an ordinary event through The Events Calendar's own functions without changing The Events Calendar's database tables. Each occurrence copies the event's times, venue, organizers, categories, tags, image, content, status, password, author, and time zone, so every date shows in normal calendar views.

Under Events > Series, you can update the title, times, venue, or description of one occurrence and every later one, edit a single date in the normal editor, or delete the whole series. If you remove RecurKit, you choose under Events > Series whether to keep the generated events as ordinary events (the default) or delete them, while events you created yourself always stay.

Sources

Questions

Do provisional post IDs work with get_post() and get_post_meta()?

Yes. In CT1, a provisional ID behaves like a real post ID for standard post lookups such as get_post( 10000004 )->post_title and get_post_meta( 10000004, '_EventStartDate', true ) because CT1 pre-fills WordPress caches with the Occurrences data. Direct database queries skip CT1 query filters and return only the IDs of the real Event posts in the database.

Does the free The Events Calendar plugin include recurring events?

No. In the free version of The Events Calendar, you do not have access to the recurring event feature. Events Calendar Pro runs alongside The Events Calendar and adds recurring events, additional calendar views, calendar shortcodes, advanced widgets, and custom event fields.

Does RecurKit change The Events Calendar's database tables?

No. RecurKit creates, edits, and deletes every occurrence through The Events Calendar's own functions, storing each occurrence as an ordinary event.

What happens to generated events if I uninstall RecurKit?

Under Events > Series, you choose whether to keep the generated events as ordinary events (the default) or delete them. Any events you created yourself always stay.

Related