Skip to main content

Documentation

In this documentation, you will find all the important information about the plugin – from installation and configuration to usage and extension.

Shortcode Builder

In this post, we’ll walk you through:


With shortcodes, you can place Cevento views anywhere on your website where WordPress shortcodes work – and as many as you like, each with its own settings (e.g. filtered by category). Cevento offers five shortcodes:

  • the Event List – your events as a list, grid or compact summary
  • the Category List – links to your event categories
  • the Event Calendar – your events in a calendar with month, week, day and list view (Cevento Pro)
  • the Event Meta – a single piece of information about an event, e.g. its date, location or description
  • the Booking Button – the booking button of an event, including its booking form

A few ideas:

  • show the next 3 upcoming events as a list on your homepage
  • add only the events of the category “Workshops” to a blog post as a grid
  • show all past events with pagination on a year-in-review page
  • give visitors a calendar of all your events, with a category filter on top
  • design your own event page with a page builder and place the date, location, description and booking button exactly where you want them
  • promote one particular event on your homepage with its date and a booking button

Working with a page builder? For the block editor, Elementor, WPBakery, YOOtheme and Divi, Cevento brings its own elements with the same settings – no shortcode needed. See Page builders.

Create a shortcode

You’ll find the Shortcode Builder in the WordPress dashboard under Cevento → Shortcode Builder.

  1. At the top, choose which view you want under Shortcode.
  2. Below, adjust the settings to your liking. Every setting comes with a short explanation, and you’ll find them all described in this document as well.
  3. On the right, the matching shortcode is updated as you go. Click the icon to copy it.
Shortcode Generator

[1] Shortcode settings, [2] Shortcode (copyable)

Insert shortcode into your website

In the WordPress block editor, add a block called “Shortcode” and paste the shortcode there. If you’re not using the block editor, simply paste the shortcode into the content of a page or post. Your view will then appear at exactly that spot.

A shortcode consists of its name and its attributes – the settings you made in the Shortcode Builder. It looks something like this:

[cevento_eventlist limit="5" display="grid" category="workshops"]

You can also write or adjust shortcodes by hand. Attributes you leave out simply use their default value. Switches accept true or false (1 and 0 work too), and categories can be given by ID or slug, several of them separated by commas.

Event List

The event list shows your events in one of three layouts. It’s the most flexible view and works for almost everything – from a short “next dates” teaser to a complete event overview.

Example “List”

Example layout “List”

Example “Grid”

Example layout “Grid”

Example “Summary”

Example layout “Summary”

Settings

  • Display mode: the layout – List, Grid or Summary.
  • Maximum number of events: how many events are shown (per page, if pagination is on). Enter -1 to show all events.
  • Link to single event: whether the events link to their detail page.
  • Filter: only upcoming, only past, or all events.
  • Sort order: by date, ascending or descending.
  • Enable pagination: adds a page navigation below the list, so visitors can browse through all events.
  • Single event ID: shows just this one event instead of a list.
  • List container ID: an HTML ID for the list, e.g. for anchor links. Lowercase letters and hyphens are always a safe choice.
  • Category filter, Category relation and Exclude categories: see Choosing categories below.
  • Show category filter nav: shows a navigation above the list, so visitors can filter the events by category. Subcategories open in a dropdown, and category descriptions appear as a tooltip. Only categories that actually have events in this list are offered – so nobody clicks on a category and ends up with an empty list.

Attributes

Shortcode: cevento_eventlist

Name Default Description
display "list" Layout: "list", "grid" or "summary".
limit 10 Maximum number of events (per page). -1 shows all events.
link true Link the events to their detail page.
filter "future" "future" (upcoming), "past" or "all".
order "ASC" Sort order by date: "ASC" or "DESC".
pagination false Show a page navigation below the list.
event-id – Show only the event with this ID.
id – HTML ID of the list container.
category – Only events of these categories (IDs or slugs, comma-separated).
category-relation "OR" "OR": at least one of the categories must match, "AND": all of them.
category-exclude – Hide events of these categories (IDs or slugs, comma-separated).
category-filter false Show the category navigation above the list.

Category List

The category list shows links to your event categories – handy as a navigation on an overview page or in a sidebar. It looks just like the category navigation of the event list: subcategories appear in a dropdown, and category descriptions as a tooltip.

Settings

  • Parent category: only lists the subcategories of this category (by ID or slug). Leave it empty for all categories.
  • Hide empty categories: only shows categories that actually have events to show – upcoming or past, but not hidden events or drafts.
  • Show description: shows the description of a category as a tooltip on its link.
  • Remove bracket suffix: removes an addition in brackets at the end of the category names, e.g. “Workshops (2026)” becomes “Workshops”.

Attributes

Shortcode: cevento_categorylist

Name Default Description
parent – Only list subcategories of this category (ID or slug).
hide-empty true Hide categories without events.
show-description true Show category descriptions as a tooltip.
remove-bracket false Remove a trailing “(…)” from category names.

Event Calendar

The event calendar is part of Cevento Pro.

The event calendar shows your events the way people know it from their own calendar app – by month, week or day, or as a list. Hovering over an event shows a tooltip with the most important details, and a click takes visitors to the event page. Visitors can browse back and forth freely; the calendar loads the events of each period as it goes, so even large calendars stay fast.

Would you like the calendar to replace your event archive? Choose the archive layout “Calendar” in the settings.

Settings

  • Filter: only upcoming, only past, or all events (default: all).
  • Category filter, Category relation and Exclude categories: see Choosing categories below.
  • Show category filter nav: shows a category navigation above the calendar, so visitors can narrow the calendar down to one category. Only categories with events in this calendar are offered.
  • Initial view: the view the calendar starts with – Month, Week, Day or List.
  • Show view switcher: lets visitors switch between views themselves.
  • Views in the view switcher: which views the switcher offers. If you leave it empty, all four are available.
  • Height: with “auto”, the calendar is as tall as its content. If you prefer a fixed height, enter pixels (e.g. 600) or another CSS length (e.g. 80vh) – the calendar then scrolls inside.
  • Link to single event: whether a click on an event opens its detail page.
  • Mobile view: on small screens, a full calendar quickly gets cramped. By default (“Calendar”), smartphones get a compact month view instead: days with events are marked with a dot, and tapping a day shows its events below the calendar – with time, location and a link to the event. The compact calendar can also be used with the keyboard (arrow keys between days, Page Up/Page Down between months) and with screen readers. Alternatively, you can show an event list (list, grid or summary) there instead. With the filter “All events”, that list shows the upcoming events.
  • Mobile breakpoint (px): below which screen width the mobile view is used (default: 768).
  • Events per page in the mobile list: the mobile list is paginated, so all events stay within reach.

Attributes

Shortcode: cevento_eventcalendar

Name Default Description
filter "all" "future" (upcoming), "past" or "all".
category – Only events of these categories (IDs or slugs, comma-separated).
category-relation "OR" "OR": at least one of the categories must match, "AND": all of them.
category-exclude – Hide events of these categories (IDs or slugs, comma-separated).
category-filter false Show the category navigation above the calendar.
view "month" Initial view: "month", "week", "day" or "list".
view_switcher false Show the view switcher.
views – Views in the switcher, comma-separated (e.g. "month,list"). Empty: all views.
height "auto" "auto", a number of pixels (e.g. 600) or a CSS length (e.g. "80vh").
link true Link the events to their detail page.
mobile_view "calendar" On small screens: "calendar" (compact month with a dot on days with events, the events of the selected day below), or an event list as "list", "grid" or "summary".
mobile_breakpoint 768 Screen width in pixels below which the mobile view is used.
mobile_limit 10 Events per page in the mobile list.

Event Meta

The event meta shortcode outputs a single piece of information about an event – its date, its location, its description, the number of available spots, and so on. It’s made for building your own event page: with a page builder or theme template for your single events, you can place every detail exactly where you want it, instead of using the layout of Cevento’s event page.

Everything is formatted just like on Cevento’s own event pages: dates use the date formats from the settings, switches show “Yes” or “No”, selections show the chosen option, and the description keeps its formatting.

[cevento_meta key="datetime"]
[cevento_meta key="infos_html_description"]
[cevento_meta key="infos_address_city" id="123"]

Settings

  • Field: the information to show. See the list below.
  • Event ID: the event to show it for. Leave it empty on the page of a single event (or in a page builder template for single events) – then the event of that page is used. Enter an ID to show the information of a specific event anywhere else, e.g. on your homepage.

You’ll find the ID of an event in the address of its edit page in the dashboard: post.php?post=123&action=edit – here, the ID is 123.

Fields

The most common values for key:

Key Shows
datetime Date and time of the event, formatted like on the event page – including the end, if there is one
datetime_from Start date and time (without the time for all-day events)
datetime_until End date and time – empty for events without an end
address The location in one line: venue name, street, ZIP code and city, country
infos_address_name The venue name
infos_address, infos_address_zip, infos_address_city, infos_address_country Street and house number, ZIP code, city and country on their own
infos_address_coords The coordinates of the location
infos_html_description The description of the event page, with its formatting
infos_description The plain-text description of the iCal file
places The available spots, e.g. “12 spots available” or “Fully booked” – empty for events without bookings or with an external booking link
price The price of a paid event (Cevento Pro with WooCommerce)
booking_max_places The maximum number of spots – empty if there’s no limit
booking_available_from, booking_available_until Start and end of the booking period – the default period, if none is set
infos_featured, booking_active Yes or No: featured event, bookings enabled

In the Shortcode Builder and the page builder elements, you’ll find all available fields in the Field dropdown – including the remaining fields of the event editor and fields added by developers (see Adding your own fields). Each one is shown with its key in brackets, so you can easily use it in a shortcode too.

If the event has no value for the field, the shortcode outputs nothing – so you don’t end up with empty labels. Unpublished events (drafts, private or password-protected events) are never shown.

Attributes

Shortcode: cevento_meta

Name Default Description
key "datetime" The field to show (see the list above).
id – ID of the event. Empty: the event of the current page.

Booking Button

The booking button shortcode shows the booking button of an event – exactly like on Cevento’s event page. A click opens the booking form in a popup, where visitors can book right away, without leaving the page. Just like on the event page, the button adapts to the event:

  • bookings open: the button opens the booking form
  • external booking link: the button leads to the external booking page
  • fully booked with waiting list (Cevento Pro): the button “Join Waitlist” opens the form for the waiting list
  • bookings not open (yet) or closed, or fully booked without a waiting list: no button is shown
  • bookings disabled: a button to download the event as an iCal file
[cevento_booking]
[cevento_booking id="123"]

Use it on your own event page (with a page builder or theme template for single events), or to promote an event anywhere else – e.g. on your homepage, in a blog post or on a landing page, together with the Event Meta shortcode for its date.

Settings

  • Event ID: the event to book. Leave it empty on the page of a single event (or in a page builder template for single events) – then the event of that page is used. Enter an ID to show the booking button of a specific event anywhere else.

You can use the shortcode several times on one page, e.g. at the top and at the bottom: all buttons of an event open the same booking form. On Cevento’s own event page, a booking button of the same event also shares the booking form of the page.

Booking buttons of several events on the same page work, too. If these events use different booking forms, however, some extras of the second form (date pickers, searchable dropdowns and conditional fields) may not work as configured. For pages with several events, use one booking form for all of them, or link to the event pages instead.

In the editor preview of the block editor and the page builders, only the button is shown – the booking form opens on the published page.

Attributes

Shortcode: cevento_booking

Name Default Description
id – ID of the event. Empty: the event of the current page.

Choosing categories

The event list and the event calendar share the same three settings for categories:

  • Category filter: only shows events of the selected categories. If you don’t select any, all events are shown.
  • Category relation: decides how several selected categories work together. With OR (at least one must match), an event needs just one of them; with AND (all must match), it needs all of them.
  • Exclude categories: events of these categories are left out, even if they match the categories above.

To select several categories, hold Ctrl / Cmd and click on them. Click again while holding the key to deselect a category.