Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 6 min read

How to repeat an event on multiple days a week in The Events Calendar

Your studio runs the same class on Tuesdays and Thursdays, and you want both days on your calendar without typing every session by hand. In The Events Calendar, you can repeat an event across multiple weekdays with Event

Your studio runs the same class on Tuesdays and Thursdays, and you want both days on your calendar without typing every session by hand. In The Events Calendar, you can repeat an event across multiple weekdays with Events Calendar Pro, or create single events by hand, use the built-in CSV import tool, or use RecurKit. Which path fits depends on whether both days share the same time and whether you use The Events Calendar alone or with Events Calendar Pro.

Schedule multiple weekdays with Events Calendar Pro

Recurring events are an Events Calendar Pro feature, and Events Calendar Pro runs alongside The Events Calendar. Start with the event's date and time, or open an existing single event where they're already set. The first date becomes the first occurrence, and it decides which pattern options you can choose.

  • In the Classic Editor, open the Time & Date section and click Schedule multiple events below the start and end times.
  • In the Block Editor, click the event's date and time below the title to open the date picker, then click Repeat This Event.
  • Choose weekly from the Happens dropdown.
  • Set Every to how often the event repeats, such as every 1 week or every 2 months.
  • Pick your weekdays under On; the day of the first date is always selected, and you can add more, such as Tuesdays and Thursdays.
  • Choose when the event stops under Ends: Never creates dates up to 60 months (five years) ahead of the day you save the event, On stops on a date you choose and includes that date, and After stops after a set number of dates, such as 10 events.

In the Classic Editor, a sentence below the rule describes the pattern, so you can check it before you save. Events Calendar Pro creates each date when you save. If the event isn't part of a Series yet, it creates a Series with the same name.

When your weekdays have different times or need a second pattern

This part is easy to miss: each event can repeat on only one pattern, plus any number of single dates. If Tuesday and Thursday classes run at the same time, selecting both weekdays in one weekly rule handles the schedule. If you add a second repeating pattern with Add more events or Add More, it's saved, but it doesn't create any dates.

When Thursday runs at a different time than Tuesday, or needs a separate pattern, you have two ways to handle it in Events Calendar Pro:

  • Add single extra dates with once: choose once from Happens and enter the date in the On field, or pick it from the date picker. Check the From and to times for every date, because in the Classic Editor they start at 8:00 am to 5:00 pm, not at the event's own time.
  • Group two recurring events into a Series: save your first weekly event (which puts it into a Series with the same name), duplicate the event to save a copy in the same Series, then change the copy's pattern and publish it. A Series groups any number of single and recurring events on one Series page.

Repeat an event across weekdays without Events Calendar Pro

If you use The Events Calendar without Events Calendar Pro, recurring events aren't included. You still have three options for putting a multi-day weekly class or meeting on your calendar.

First, you can add each session from Events > Add New in the WordPress dashboard and pick your start and end dates from the calendar date picker. You don't have to retype venues or organizers every time: you can pick an existing venue from a drop-down menu (and type into the search box to narrow your options) and select any pre-existing organizer details you've already entered. Second, The Events Calendar has a built-in CSV import tool.

Third, you can use RecurKit, an independent WordPress plugin by Bright Labs that works with The Events Calendar. In the event editor, tick Repeat this event, pick the weekdays you want (such as Tuesday and Thursday) and set when the series ends. When you publish, RecurKit creates up to 52 occurrences as ordinary events through The Events Calendar's own functions, each keeping the same times, venue, organizers, categories, tags and image.

Because RecurKit writes ordinary events rather than changing The Events Calendar's database tables, every date shows in every calendar view. Under Events > Series, you can change 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 uninstall RecurKit later, you choose under Events > Series whether to keep the generated events as plain events (the default) or delete them, and events you created yourself always stay.

  • Free ($0): weekly repeats on any weekdays, up to 52 occurrences per series, edit this and later occurrences, delete a series.
  • Pro ($9/month per site): everything in Free, monthly rules such as the 2nd Tuesday or the 15th, custom date lists and skip dates for holidays, shift a whole series to a new time, and series of up to 200 occurrences.

Keep twice-weekly events from crowding list views

Repeating an event multiple times a week can fill list-style views with the same event. If you use Series in Events Calendar Pro, you have two controls for this:

  • Condense events in Series: list-style views, such as List view, show only the next date of each Series, and visitors can't change this.
  • Front-end Condense Events Series toggle: adds a Condense Events Series toggle to list-style views so visitors can choose. This option is hidden while Condense events in Series is checked, because the list is already condensed.

Watch how far ahead you generate dates as well. Recurring events that repeat far into the future add many dates to your database, so avoid having many recurring events that never end or end far in the future. Pick an explicit date with On or a set count with After when you don't need dates up to 60 months ahead.

Sources

Frequently Asked Questions

Can one recurring event in Events Calendar Pro repeat at two different times on Tuesdays and Thursdays?

No. Each event can repeat on only one pattern, plus any number of single dates. If Tuesday and Thursday have different times, create the first weekly event, duplicate it to save a copy in the same Series, then change the copy's pattern and publish it.

What happens if you add a second repeating pattern inside the same event?

If you add a second pattern with Add more events or Add More, it's saved, but it doesn't create any dates. Use once for extra dates, or a Series for a second pattern.

What happens to my events if I use RecurKit and later uninstall it?

RecurKit creates occurrences as ordinary events through The Events Calendar's own functions without changing The Events Calendar's database tables. When you remove RecurKit, you choose under Events > Series whether to keep the generated events as ordinary events (the default) or delete them, and any events you created yourself always stay.

Originally published on Bright Labs.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.