{"id":6312,"date":"2026-12-02T11:52:18","date_gmt":"2026-12-02T10:52:18","guid":{"rendered":"https:\/\/cevento-plugin.com\/docs\/001-shortcode-builder\/"},"modified":"2026-12-02T11:52:18","modified_gmt":"2026-12-02T10:52:18","slug":"001-shortcode-builder","status":"publish","type":"docs","link":"https:\/\/cevento-plugin.com\/en\/docs\/001-shortcode-builder\/","title":{"rendered":"Shortcode Builder"},"content":{"rendered":"\n<p>With shortcodes, you can place Cevento views anywhere on your website where WordPress shortcodes work &ndash; and as many as you like, each with its own settings (e.g. filtered by category). Cevento offers five shortcodes:<\/p>\n<ul>\n<li>the <a href=\"#event-list\">Event List<\/a> &ndash; your events as a list, grid or compact summary<\/li>\n<li>the <a href=\"#category-list\">Category List<\/a> &ndash; links to your event categories<\/li>\n<li>the <a href=\"#event-calendar\">Event Calendar<\/a> &ndash; your events in a calendar with month, week, day and list view (Cevento Pro)<\/li>\n<li>the <a href=\"#event-meta\">Event Meta<\/a> &ndash; a single piece of information about an event, e.g. its date, location or description<\/li>\n<li>the <a href=\"#booking-button\">Booking Button<\/a> &ndash; the booking button of an event, including its booking form<\/li>\n<\/ul>\n<p><strong>A few ideas:<\/strong><\/p>\n<ul>\n<li>show the next 3 upcoming events as a list on your homepage<\/li>\n<li>add only the events of the category &ldquo;Workshops&rdquo; to a blog post as a grid<\/li>\n<li>show all past events with pagination on a year-in-review page<\/li>\n<li>give visitors a calendar of all your events, with a category filter on top<\/li>\n<li>design your own event page with a page builder and place the date, location, description and booking button exactly where you want them<\/li>\n<li>promote one particular event on your homepage with its date and a booking button<\/li>\n<\/ul>\n<p><mark class=\"cevento-docs__tipp\">Working with a page builder? For the block editor, Elementor, WPBakery, YOOtheme and Divi, Cevento brings its own elements with the same settings &ndash; no shortcode needed. See <a href=\"\/en\/docs\/001-page-builders\/\">Page builders<\/a>.<\/mark><\/p>\n<h2 id=\"create-a-shortcode\">Create a shortcode<\/h2>\n<p>You&rsquo;ll find the Shortcode Builder in the WordPress dashboard under <span class=\"cevento-docs__term\">Cevento<\/span> &rarr; <span class=\"cevento-docs__term\">Shortcode Builder<\/span>.<\/p>\n<ol>\n<li>At the top, choose which view you want under <span class=\"cevento-docs__term\">Shortcode<\/span>.<\/li>\n<li>Below, adjust the settings to your liking. Every setting comes with a short explanation, and you&rsquo;ll find them all described in this document as well.<\/li>\n<li>On the right, the matching shortcode is updated as you go. Click the icon to copy it.<\/li>\n<\/ol>\n<div uk-lightbox><a href=\"wp-content\/uploads\/cevento-docs\/en\/004-001-shortcode-builder_uebersicht.jpg\" data-caption=\"Shortcode Generator\"><img decoding=\"async\" src=\"wp-content\/uploads\/cevento-docs\/en\/004-001-shortcode-builder_uebersicht.jpg\" alt=\"Shortcode Generator\"><\/a><\/div>\n<p><span class=\"cevento-docs__caption\">[1] Shortcode settings, [2] Shortcode (copyable)<\/span><\/p>\n<h2 id=\"insert-shortcode-into-your-website\">Insert shortcode into your website<\/h2>\n<p>In the WordPress block editor, add a block called &ldquo;Shortcode&rdquo; and paste the shortcode there. If you&rsquo;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.<\/p>\n<p>A shortcode consists of its name and its attributes &ndash; the settings you made in the Shortcode Builder. It looks something like this:<\/p>\n<pre><code class=\"language-css\">[cevento_eventlist limit=\"5\" display=\"grid\" category=\"workshops\"]<\/code><\/pre>\n<p>You can also write or adjust shortcodes by hand. Attributes you leave out simply use their default value. Switches accept <code>true<\/code> or <code>false<\/code> (<code>1<\/code> and <code>0<\/code> work too), and categories can be given by ID or slug, several of them separated by commas.<\/p>\n<h2 id=\"event-list\">Event List<\/h2>\n<p>The event list shows your events in one of three layouts. It&rsquo;s the most flexible view and works for almost everything &ndash; from a short &ldquo;next dates&rdquo; teaser to a complete event overview.<\/p>\n<div uk-lightbox><a href=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-liste.png\" data-caption=\"Example &ldquo;List&rdquo;\"><img decoding=\"async\" src=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-liste.png\" alt=\"Example &ldquo;List&rdquo;\"><\/a><\/div>\n<p><span class=\"cevento-docs__caption\">Example layout &ldquo;List&rdquo;<\/span><\/p>\n<div uk-lightbox><a href=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-raster.png\" data-caption=\"Example &ldquo;Grid&rdquo;\"><img decoding=\"async\" src=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-raster.png\" alt=\"Example &ldquo;Grid&rdquo;\"><\/a><\/div>\n<p><span class=\"cevento-docs__caption\">Example layout &ldquo;Grid&rdquo;<\/span><\/p>\n<div uk-lightbox><a href=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-kompakt.png\" data-caption=\"Example &ldquo;Summary&rdquo;\"><img decoding=\"async\" src=\"wp-content\/uploads\/cevento-docs\/en\/cevento-view-kompakt.png\" alt=\"Example &ldquo;Summary&rdquo;\"><\/a><\/div>\n<p><span class=\"cevento-docs__caption\">Example layout &ldquo;Summary&rdquo;<\/span><\/p>\n<h3>Settings<\/h3>\n<ul>\n<li><span class=\"cevento-docs__term\">Display mode<\/span>: the layout &ndash; List, Grid or Summary.<\/li>\n<li><span class=\"cevento-docs__term\">Maximum number of events<\/span>: how many events are shown (per page, if pagination is on). Enter -1 to show all events.<\/li>\n<li><span class=\"cevento-docs__term\">Link to single event<\/span>: whether the events link to their detail page.<\/li>\n<li><span class=\"cevento-docs__term\">Filter<\/span>: only upcoming, only past, or all events.<\/li>\n<li><span class=\"cevento-docs__term\">Sort order<\/span>: by date, ascending or descending.<\/li>\n<li><span class=\"cevento-docs__term\">Enable pagination<\/span>: adds a page navigation below the list, so visitors can browse through all events.<\/li>\n<li><span class=\"cevento-docs__term\">Single event ID<\/span>: shows just this one event instead of a list.<\/li>\n<li><span class=\"cevento-docs__term\">List container ID<\/span>: an HTML ID for the list, e.g. for anchor links. Lowercase letters and hyphens are always a safe choice.<\/li>\n<li><span class=\"cevento-docs__term\">Category filter<\/span>, <span class=\"cevento-docs__term\">Category relation<\/span> and <span class=\"cevento-docs__term\">Exclude categories<\/span>: see <a href=\"#choosing-categories\">Choosing categories<\/a> below.<\/li>\n<li><span class=\"cevento-docs__term\">Show category filter nav<\/span>: 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 &ndash; so nobody clicks on a category and ends up with an empty list.<\/li>\n<\/ul>\n<h3>Attributes<\/h3>\n<p>Shortcode: <span class=\"cevento-docs__term\">cevento_eventlist<\/span><\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>display<\/td>\n<td><code>\"list\"<\/code><\/td>\n<td>Layout: <code>\"list\"<\/code>, <code>\"grid\"<\/code> or <code>\"summary\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td><code>10<\/code><\/td>\n<td>Maximum number of events (per page). <code>-1<\/code> shows all events.<\/td>\n<\/tr>\n<tr>\n<td>link<\/td>\n<td><code>true<\/code><\/td>\n<td>Link the events to their detail page.<\/td>\n<\/tr>\n<tr>\n<td>filter<\/td>\n<td><code>\"future\"<\/code><\/td>\n<td><code>\"future\"<\/code> (upcoming), <code>\"past\"<\/code> or <code>\"all\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>order<\/td>\n<td><code>\"ASC\"<\/code><\/td>\n<td>Sort order by date: <code>\"ASC\"<\/code> or <code>\"DESC\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>pagination<\/td>\n<td><code>false<\/code><\/td>\n<td>Show a page navigation below the list.<\/td>\n<\/tr>\n<tr>\n<td>event-id<\/td>\n<td>&ndash;<\/td>\n<td>Show only the event with this ID.<\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>&ndash;<\/td>\n<td>HTML ID of the list container.<\/td>\n<\/tr>\n<tr>\n<td>category<\/td>\n<td>&ndash;<\/td>\n<td>Only events of these categories (IDs or slugs, comma-separated).<\/td>\n<\/tr>\n<tr>\n<td>category-relation<\/td>\n<td><code>\"OR\"<\/code><\/td>\n<td><code>\"OR\"<\/code>: at least one of the categories must match, <code>\"AND\"<\/code>: all of them.<\/td>\n<\/tr>\n<tr>\n<td>category-exclude<\/td>\n<td>&ndash;<\/td>\n<td>Hide events of these categories (IDs or slugs, comma-separated).<\/td>\n<\/tr>\n<tr>\n<td>category-filter<\/td>\n<td><code>false<\/code><\/td>\n<td>Show the category navigation above the list.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"category-list\">Category List<\/h2>\n<p>The category list shows links to your event categories &ndash; 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.<\/p>\n<h3>Settings<\/h3>\n<ul>\n<li><span class=\"cevento-docs__term\">Parent category<\/span>: only lists the subcategories of this category (by ID or slug). Leave it empty for all categories.<\/li>\n<li><span class=\"cevento-docs__term\">Hide empty categories<\/span>: only shows categories that actually have events to show &ndash; upcoming or past, but not hidden events or drafts.<\/li>\n<li><span class=\"cevento-docs__term\">Show description<\/span>: shows the description of a category as a tooltip on its link.<\/li>\n<li><span class=\"cevento-docs__term\">Remove bracket suffix<\/span>: removes an addition in brackets at the end of the category names, e.g. &ldquo;Workshops (2026)&rdquo; becomes &ldquo;Workshops&rdquo;.<\/li>\n<\/ul>\n<h3>Attributes<\/h3>\n<p>Shortcode: <span class=\"cevento-docs__term\">cevento_categorylist<\/span><\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>parent<\/td>\n<td>&ndash;<\/td>\n<td>Only list subcategories of this category (ID or slug).<\/td>\n<\/tr>\n<tr>\n<td>hide-empty<\/td>\n<td><code>true<\/code><\/td>\n<td>Hide categories without events.<\/td>\n<\/tr>\n<tr>\n<td>show-description<\/td>\n<td><code>true<\/code><\/td>\n<td>Show category descriptions as a tooltip.<\/td>\n<\/tr>\n<tr>\n<td>remove-bracket<\/td>\n<td><code>false<\/code><\/td>\n<td>Remove a trailing &ldquo;(&hellip;)&rdquo; from category names.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"event-calendar\">Event Calendar<\/h2>\n<p><mark class=\"cevento-docs__tipp\">The event calendar is part of Cevento Pro.<\/mark><\/p>\n<p>The event calendar shows your events the way people know it from their own calendar app &ndash; 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.<\/p>\n<p><mark class=\"cevento-docs__tipp\">Would you like the calendar to replace your event archive? Choose the archive layout &ldquo;Calendar&rdquo; in the <a href=\"\/en\/docs\/003-settings\/#display\">settings<\/a>.<\/mark><\/p>\n<h3>Settings<\/h3>\n<ul>\n<li><span class=\"cevento-docs__term\">Filter<\/span>: only upcoming, only past, or all events (default: all).<\/li>\n<li><span class=\"cevento-docs__term\">Category filter<\/span>, <span class=\"cevento-docs__term\">Category relation<\/span> and <span class=\"cevento-docs__term\">Exclude categories<\/span>: see <a href=\"#choosing-categories\">Choosing categories<\/a> below.<\/li>\n<li><span class=\"cevento-docs__term\">Show category filter nav<\/span>: 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.<\/li>\n<li><span class=\"cevento-docs__term\">Initial view<\/span>: the view the calendar starts with &ndash; Month, Week, Day or List.<\/li>\n<li><span class=\"cevento-docs__term\">Show view switcher<\/span>: lets visitors switch between views themselves.<\/li>\n<li><span class=\"cevento-docs__term\">Views in the view switcher<\/span>: which views the switcher offers. If you leave it empty, all four are available.<\/li>\n<li><span class=\"cevento-docs__term\">Height<\/span>: with &ldquo;auto&rdquo;, 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) &ndash; the calendar then scrolls inside.<\/li>\n<li><span class=\"cevento-docs__term\">Link to single event<\/span>: whether a click on an event opens its detail page.<\/li>\n<li><span class=\"cevento-docs__term\">Mobile view<\/span>: on small screens, a full calendar quickly gets cramped. By default (&ldquo;Calendar&rdquo;), 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 &ndash; 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 &ldquo;All events&rdquo;, that list shows the upcoming events.<\/li>\n<li><span class=\"cevento-docs__term\">Mobile breakpoint (px)<\/span>: below which screen width the mobile view is used (default: 768).<\/li>\n<li><span class=\"cevento-docs__term\">Events per page in the mobile list<\/span>: the mobile list is paginated, so all events stay within reach.<\/li>\n<\/ul>\n<h3>Attributes<\/h3>\n<p>Shortcode: <span class=\"cevento-docs__term\">cevento_eventcalendar<\/span><\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>filter<\/td>\n<td><code>\"all\"<\/code><\/td>\n<td><code>\"future\"<\/code> (upcoming), <code>\"past\"<\/code> or <code>\"all\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>category<\/td>\n<td>&ndash;<\/td>\n<td>Only events of these categories (IDs or slugs, comma-separated).<\/td>\n<\/tr>\n<tr>\n<td>category-relation<\/td>\n<td><code>\"OR\"<\/code><\/td>\n<td><code>\"OR\"<\/code>: at least one of the categories must match, <code>\"AND\"<\/code>: all of them.<\/td>\n<\/tr>\n<tr>\n<td>category-exclude<\/td>\n<td>&ndash;<\/td>\n<td>Hide events of these categories (IDs or slugs, comma-separated).<\/td>\n<\/tr>\n<tr>\n<td>category-filter<\/td>\n<td><code>false<\/code><\/td>\n<td>Show the category navigation above the calendar.<\/td>\n<\/tr>\n<tr>\n<td>view<\/td>\n<td><code>\"month\"<\/code><\/td>\n<td>Initial view: <code>\"month\"<\/code>, <code>\"week\"<\/code>, <code>\"day\"<\/code> or <code>\"list\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>view_switcher<\/td>\n<td><code>false<\/code><\/td>\n<td>Show the view switcher.<\/td>\n<\/tr>\n<tr>\n<td>views<\/td>\n<td>&ndash;<\/td>\n<td>Views in the switcher, comma-separated (e.g. <code>\"month,list\"<\/code>). Empty: all views.<\/td>\n<\/tr>\n<tr>\n<td>height<\/td>\n<td><code>\"auto\"<\/code><\/td>\n<td><code>\"auto\"<\/code>, a number of pixels (e.g. <code>600<\/code>) or a CSS length (e.g. <code>\"80vh\"<\/code>).<\/td>\n<\/tr>\n<tr>\n<td>link<\/td>\n<td><code>true<\/code><\/td>\n<td>Link the events to their detail page.<\/td>\n<\/tr>\n<tr>\n<td>mobile_view<\/td>\n<td><code>\"calendar\"<\/code><\/td>\n<td>On small screens: <code>\"calendar\"<\/code> (compact month with a dot on days with events, the events of the selected day below), or an event list as <code>\"list\"<\/code>, <code>\"grid\"<\/code> or <code>\"summary\"<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>mobile_breakpoint<\/td>\n<td><code>768<\/code><\/td>\n<td>Screen width in pixels below which the mobile view is used.<\/td>\n<\/tr>\n<tr>\n<td>mobile_limit<\/td>\n<td><code>10<\/code><\/td>\n<td>Events per page in the mobile list.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"event-meta\">Event Meta<\/h2>\n<p>The event meta shortcode outputs a single piece of information about an event &ndash; its date, its location, its description, the number of available spots, and so on. It&rsquo;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&rsquo;s event page.<\/p>\n<p>Everything is formatted just like on Cevento&rsquo;s own event pages: dates use the date formats from the <a href=\"\/en\/docs\/003-settings\/#display\">settings<\/a>, switches show &ldquo;Yes&rdquo; or &ldquo;No&rdquo;, selections show the chosen option, and the description keeps its formatting.<\/p>\n<pre><code class=\"language-css\">[cevento_meta key=\"datetime\"]\n[cevento_meta key=\"infos_html_description\"]\n[cevento_meta key=\"infos_address_city\" id=\"123\"]<\/code><\/pre>\n<h3>Settings<\/h3>\n<ul>\n<li><span class=\"cevento-docs__term\">Field<\/span>: the information to show. See the list below.<\/li>\n<li><span class=\"cevento-docs__term\">Event ID<\/span>: 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) &ndash; 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.<\/li>\n<\/ul>\n<p><mark class=\"cevento-docs__tipp\">You&rsquo;ll find the ID of an event in the address of its edit page in the dashboard: <code>post.php?post=123&amp;action=edit<\/code> &ndash; here, the ID is 123.<\/mark><\/p>\n<h3>Fields<\/h3>\n<p>The most common values for <span class=\"cevento-docs__term\">key<\/span>:<\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Key<\/th>\n<th>Shows<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>datetime<\/code><\/td>\n<td>Date and time of the event, formatted like on the event page &ndash; including the end, if there is one<\/td>\n<\/tr>\n<tr>\n<td><code>datetime_from<\/code><\/td>\n<td>Start date and time (without the time for all-day events)<\/td>\n<\/tr>\n<tr>\n<td><code>datetime_until<\/code><\/td>\n<td>End date and time &ndash; empty for events without an end<\/td>\n<\/tr>\n<tr>\n<td><code>address<\/code><\/td>\n<td>The location in one line: venue name, street, ZIP code and city, country<\/td>\n<\/tr>\n<tr>\n<td><code>infos_address_name<\/code><\/td>\n<td>The venue name<\/td>\n<\/tr>\n<tr>\n<td><code>infos_address<\/code>, <code>infos_address_zip<\/code>, <code>infos_address_city<\/code>, <code>infos_address_country<\/code><\/td>\n<td>Street and house number, ZIP code, city and country on their own<\/td>\n<\/tr>\n<tr>\n<td><code>infos_address_coords<\/code><\/td>\n<td>The coordinates of the location<\/td>\n<\/tr>\n<tr>\n<td><code>infos_html_description<\/code><\/td>\n<td>The description of the event page, with its formatting<\/td>\n<\/tr>\n<tr>\n<td><code>infos_description<\/code><\/td>\n<td>The plain-text description of the iCal file<\/td>\n<\/tr>\n<tr>\n<td><code>places<\/code><\/td>\n<td>The available spots, e.g. &ldquo;12 spots available&rdquo; or &ldquo;Fully booked&rdquo; &ndash; empty for events without bookings or with an external booking link<\/td>\n<\/tr>\n<tr>\n<td><code>price<\/code><\/td>\n<td>The price of a paid event (Cevento Pro with WooCommerce)<\/td>\n<\/tr>\n<tr>\n<td><code>booking_max_places<\/code><\/td>\n<td>The maximum number of spots &ndash; empty if there&rsquo;s no limit<\/td>\n<\/tr>\n<tr>\n<td><code>booking_available_from<\/code>, <code>booking_available_until<\/code><\/td>\n<td>Start and end of the booking period &ndash; the default period, if none is set<\/td>\n<\/tr>\n<tr>\n<td><code>infos_featured<\/code>, <code>booking_active<\/code><\/td>\n<td>Yes or No: featured event, bookings enabled<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>In the Shortcode Builder and the page builder elements, you&rsquo;ll find all available fields in the <span class=\"cevento-docs__term\">Field<\/span> dropdown &ndash; including the remaining fields of the event editor and fields added by developers (see <a href=\"\/en\/docs\/002-hooks\/#adding-your-own-fields\">Adding your own fields<\/a>). Each one is shown with its key in brackets, so you can easily use it in a shortcode too.<\/p>\n<p>If the event has no value for the field, the shortcode outputs nothing &ndash; so you don&rsquo;t end up with empty labels. Unpublished events (drafts, private or password-protected events) are never shown.<\/p>\n<h3>Attributes<\/h3>\n<p>Shortcode: <span class=\"cevento-docs__term\">cevento_meta<\/span><\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>key<\/td>\n<td><code>\"datetime\"<\/code><\/td>\n<td>The field to show (see the list above).<\/td>\n<\/tr>\n<tr>\n<td>id<\/td>\n<td>&ndash;<\/td>\n<td>ID of the event. Empty: the event of the current page.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"booking-button\">Booking Button<\/h2>\n<p>The booking button shortcode shows the booking button of an event &ndash; exactly like on Cevento&rsquo;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:<\/p>\n<ul>\n<li>bookings open: the button opens the booking form<\/li>\n<li>external booking link: the button leads to the external booking page<\/li>\n<li>fully booked with waiting list (Cevento Pro): the button &ldquo;Join Waitlist&rdquo; opens the form for the waiting list<\/li>\n<li>bookings not open (yet) or closed, or fully booked without a waiting list: no button is shown<\/li>\n<li>bookings disabled: a button to download the event as an iCal file<\/li>\n<\/ul>\n<pre><code class=\"language-css\">[cevento_booking]\n[cevento_booking id=\"123\"]<\/code><\/pre>\n<p>Use it on your own event page (with a page builder or theme template for single events), or to promote an event anywhere else &ndash; e.g. on your homepage, in a blog post or on a landing page, together with the <a href=\"#event-meta\">Event Meta<\/a> shortcode for its date.<\/p>\n<h3>Settings<\/h3>\n<ul>\n<li><span class=\"cevento-docs__term\">Event ID<\/span>: the event to book. Leave it empty on the page of a single event (or in a page builder template for single events) &ndash; then the event of that page is used. Enter an ID to show the booking button of a specific event anywhere else.<\/li>\n<\/ul>\n<p><mark class=\"cevento-docs__tipp\">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&rsquo;s own event page, a booking button of the same event also shares the booking form of the page.<\/mark><\/p>\n<p><mark class=\"cevento-docs__notice\">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.<\/mark><\/p>\n<p>In the editor preview of the block editor and the page builders, only the button is shown &ndash; the booking form opens on the published page.<\/p>\n<h3>Attributes<\/h3>\n<p>Shortcode: <span class=\"cevento-docs__term\">cevento_booking<\/span><\/p>\n<div class=\"uk-overflow-auto\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id<\/td>\n<td>&ndash;<\/td>\n<td>ID of the event. Empty: the event of the current page.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"choosing-categories\">Choosing categories<\/h2>\n<p>The event list and the event calendar share the same three settings for categories:<\/p>\n<ul>\n<li><span class=\"cevento-docs__term\">Category filter<\/span>: only shows events of the selected categories. If you don&rsquo;t select any, all events are shown.<\/li>\n<li><span class=\"cevento-docs__term\">Category relation<\/span>: 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.<\/li>\n<li><span class=\"cevento-docs__term\">Exclude categories<\/span>: events of these categories are left out, even if they match the categories above.<\/li>\n<\/ul>\n<p>To select several categories, hold <kbd>Ctrl \/ Cmd<\/kbd> and click on them. Click again while holding the key to deselect a category.<\/p>\n\n","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false},"thema":[889],"class_list":["post-6312","docs","type-docs","status-publish","hentry","thema-shortcodes"],"acf":{"excerpt":"Insert event views at custom positions on your website","toc":"<ol class=\"toc\">\n<li><a href=\"#create-a-shortcode\"  uk-scroll=\"offset: 120\">Create a shortcode<\/a><\/li>\n<li><a href=\"#insert-shortcode-into-your-website\"  uk-scroll=\"offset: 120\">Insert shortcode into your website<\/a><\/li>\n<li><a href=\"#event-list\"  uk-scroll=\"offset: 120\">Event List<\/a><\/li>\n<li><a href=\"#category-list\"  uk-scroll=\"offset: 120\">Category List<\/a><\/li>\n<li><a href=\"#event-calendar\"  uk-scroll=\"offset: 120\">Event Calendar<\/a><\/li>\n<li><a href=\"#event-meta\"  uk-scroll=\"offset: 120\">Event Meta<\/a><\/li>\n<li><a href=\"#booking-button\"  uk-scroll=\"offset: 120\">Booking Button<\/a><\/li>\n<li><a href=\"#choosing-categories\"  uk-scroll=\"offset: 120\">Choosing categories<\/a><\/li>\n<\/ol>\n"},"_links":{"self":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/docs\/6312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/media?parent=6312"}],"wp:term":[{"taxonomy":"thema","embeddable":true,"href":"https:\/\/cevento-plugin.com\/en\/wp-json\/wp\/v2\/thema?post=6312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}