Adding an event detail page with [showpass_events]
An Event Detail page is a dedicated page on your website that shows all the information for a single event: name, description, date, time, location, image, and the Showpass purchase widget.
Using event detail pages creates a richer experience than sending users straight to Showpass from an event list.
How it works
- You create a generic WordPress page (e.g.
yourwebsite.com/event-detail). - You add the shortcode
[showpass_events type="detail"]to that page. - Your event list shortcode (
[showpass_events type="list" ...]) is configured with adetail_pageparameter that points to this page. - When a user clicks an event in the list, they’re sent to the detail page with a URL like
?slug=…or?id=….
The detail shortcode reads those URL parameters and loads the correct event.
Steps to create an event detail page
1. Create a new WordPress page
- In the WordPress admin, go to Pages → Add New.
- Give the page a title, such as “Event Detail” or “Event Information”.
The actual event name will be rendered by the shortcode. - Check the page slug/permalink. For example:
- Title:
Event Detail - Slug:
event-detail
In this example, the page URL would beyourwebsite.com/event-detail.
- Title:
2. Add the shortcode
- On this new page, add a Shortcode block.
- In the block, enter:
[showpass_events type="detail"]
This tells the plugin to render the details for a single event based on the URL parameters.
3. Publish the page
Click Publish to make your event detail page live.
4. Update your event list shortcode(s)
Go to the page(s) where you display your event list using
[showpass_events type="list"].Add the
detail_pageparameter to the shortcode, using the slug of the detail page you just created.Example: If your detail page slug is
event-detail:[showpass_events type="list" detail_page="event-detail"]If you have multiple event lists, update each one so they all point to the correct detail page.
How the URL works
When a user clicks an event in the list (with detail_page="event-detail"), they’re sent to a URL such as:
https://yourwebsite.com/event-detail/?slug=the-specific-event-slugorhttps://yourwebsite.com/event-detail/?id=12345
The [showpass_events type="detail"] shortcode automatically:
- Checks the URL for
slugorid. - Fetches the corresponding event from Showpass.
- Renders the event details on the page.
You don’t need to create a separate WordPress page for each event — the same detail page works for all events.
Customizing your event detail page: parameters
The [showpass_events type="detail"] shortcode doesn’t need many parameters, since it focuses on one event at a time. However, you can customize its behavior with a few options.
template="data"
Use case: Build a completely custom PHP template for your event detail page.
Behavior:
- Default: Uses the plugin’s
default-detail.phptemplate. - With
template="data": Returns raw event data so you can handle output yourself.
- Default: Uses the plugin’s
Example:
[showpass_events type="detail" template="data"]
(See “Creating Custom Templates” for more details.)
show_widget_description="true|false"
Use case: Force the purchase widget’s description panel to show or hide, overriding the global admin setting.
Example:
[showpass_events type="detail" show_widget_description="false"]
lang="fr"
Use case: Change the widget interface language on the event detail page.
Behavior:
- If omitted, the widget uses English.
lang="fr"switches the widget UI to French.
Example:
[showpass_events type="detail" lang="fr"]Important:
langaffects the purchase widget only, not the HTML of the detail template itself. For a fully French detail page, usetemplate="data"with your own French template and includelang="fr"so the widget matches.
tracking_id="your-tracking-token"
- Use case: Set an affiliate tracking ID for purchases made from this event detail page.
- Value: Your Showpass tracking token
- Example:
[showpass_events type="detail" tracking_id="campaign-123"] - Note: This applies tracking to purchases made from the widget on this detail page. See Widgets and affiliate tracking links for more details.
What an event detail page shows by default
With:
[showpass_events type="detail"]
the default template typically includes:
- Event name
- Event image/banner
- Event date & time
- Event location
- Event description
- Embedded Showpass ticket purchasing widget
This gives each event a complete, self-contained page on your site, keeping visitors on your domain and providing a more polished experience than linking directly out to Showpass.