Placeholders
A placeholder is a short code beginning with #_ that Events Manager replaces with a piece of information when it displays an event, a location, a booking, a category or a tag. You write ordinary HTML and put placeholders where the information should appear:
<h3>#_EVENTLINK</h3>
<p>#_EVENTDATES at #_EVENTTIMES, #_LOCATIONNAME</p>
For Harbor Lights Jazz Night that prints the event name as a link, then its dates, times and venue.
Where placeholders work
| Place | What you can use there |
|---|---|
| Events then Settings then Formatting | The formats for event lists, single event pages, locations, categories, tags and the calendar. If you don't see the format boxes, click Enable Advanced Mode at the top of the tab. |
| Events then Settings then Emails | Booking emails accept booking, event and location placeholders. Emails about an event, such as event submission emails, accept event and location placeholders. |
The format, format_header and format_footer attributes | Any shortcode or template tag that lists events or locations. See Search Parameters. |
| Between an opening and closing shortcode | [events_list]#_EVENTLINK[/events_list] uses the enclosed text as the format. |
Which placeholders are replaced depends on what is being displayed:
- An event format replaces event placeholders, then the placeholders of the event's location, its first category and its first tag.
- A location, category or tag format replaces only its own placeholders.
- A booking format (emails, for example) replaces booking placeholders, then everything an event format replaces, for the booked event.
A placeholder that doesn't apply is left as typed, so a stray #_BOOKINGNAME in an events list shows up as text on the page. To show part of a format only in some cases, wrap it in a conditional placeholder.
Rows marked Pro need Events Manager Pro. Rows marked with an add-on name need that add-on. Hover over a row and click the # next to the placeholder to get a link straight to it.
Event related placeholders
Use these wherever an event is displayed. Location, category and tag placeholders also work in the same format.
Event details
| Placeholder | What it shows |
|---|---|
#_EVENTID | The event ID. For one timeslot of an event with timeslots it is the event ID and timeslot ID together, such as 123:456. |
#_EVENTPOSTID | The WordPress post ID of the event. |
#_EVENTNAME | The event name. |
#_EVENTNOTES | The event description. |
#_EVENTEXCERPT | The event excerpt if one was written. Otherwise the description up to the more tag, or the whole description if there is none. |
#_EVENTEXCERPT{words,...} | As above, but when there is no written excerpt the description is cut to a number of words. #_EVENTEXCERPT{10,...} shows 10 words followed by .... |
#_EVENTEXCERPTCUT | Like #_EVENTEXCERPT, but always cut to a word count, even when an excerpt was written. The default is 55 words ending in [...]. Accepts the same {words,...} arguments. |
#_EVENTIMAGE | The event image, full size. Nothing if the event has no image. |
#_EVENTIMAGE{x,y} | The event image at a given width and height in pixels, such as #_EVENTIMAGE{100,100}. Use 0 for either number to scale that side in proportion. |
#_EVENTIMAGEURL | The URL of the event image. |
#_EVENTCATEGORIES | A list of the event's categories, each linked to its page. |
#_EVENTCATEGORIESLINE | The event's categories as links on one comma-separated line, or the No Categories message from the settings. |
#_EVENTCATEGORIESIMAGES | The images of the event's categories. Categories without an image are skipped. |
#_EVENTTAGS | A list of the event's tags, each linked to its page. |
#_EVENTTAGSLINE | The event's tags as links on one comma-separated line, or the no-tags message from the settings. |
#_EVENTSTATUS | The event status as text, Active or Cancelled. |
#_EVENTLOCATION | The event's online location (a URL, a custom link, a Zoom meeting and so on), not its physical venue. See Online and hybrid events. |
Organizers
Since 7.5 These work when Enable organizers? is set to Yes in Events then Settings then General then General Options. See Event Organizers.
Wrap them in {has_organizers} to leave out the surrounding text on events with no organizer.
Recurring events
On one date of a recurring event, these describe the whole series. Combine them with the {is_recurrence} conditional placeholder in lists that mix recurring and one-off events.
Date and times
Ready-made dates and times. For your own formats see Custom date and time formatting below.
Custom date and time formatting
You can build any date format from PHP date format characters.
Timezones
Each event can have its own timezone. The date and time placeholders above print the time at the event. The placeholders in this section print the timezone itself, or convert the time to your site's timezone or to the visitor's.
Site timezone dates and times
These print the event time converted to your site's timezone, which is set in Settings then General in WordPress.
| Placeholder | What it shows |
|---|---|
#_EVENTDATES_SITE | #_EVENTDATES in the site timezone. |
#_EVENTTIMES_SITE | #_EVENTTIMES in the site timezone. |
#_12HSTARTTIME_SITE | #_12HSTARTTIME in the site timezone. |
#_12HENDTIME_SITE | #_12HENDTIME in the site timezone. |
#_24HSTARTTIME_SITE | #_24HSTARTTIME in the site timezone. |
#_24HENDTIME_SITE | #_24HENDTIME in the site timezone. |
#__{x} and #@__{x} | #_{x} and #@_{x} with two underscores, in the site timezone. |
Visitor timezone dates and times
These print the event time converted to the visitor's timezone. The conversion happens in the visitor's browser, so the text reads "JavaScript Disabled" where scripts are blocked, and these placeholders are not suitable for emails.
| Placeholder | What it shows |
|---|---|
#_EVENTDATES_LOCAL | #_EVENTDATES in the visitor's timezone. |
#_EVENTDATES_LOCAL{...} | The same with your own format, written in Moment.js format syntax (not PHP), such as #_EVENTDATES_LOCAL{dddd D MMMM}. A second argument after a comma replaces the separator between start and end. |
#_EVENTTIMES_LOCAL | #_EVENTTIMES in the visitor's timezone. |
#_EVENTTIMES_LOCAL{...} | The same with your own Moment.js format, such as #_EVENTTIMES_LOCAL{h:mm A}. |
#_12HSTARTTIME_LOCAL | #_12HSTARTTIME in the visitor's timezone. |
#_12HENDTIME_LOCAL | #_12HENDTIME in the visitor's timezone. |
#_24HSTARTTIME_LOCAL | #_24HSTARTTIME in the visitor's timezone. |
#_24HENDTIME_LOCAL | #_24HENDTIME in the visitor's timezone. |
#_24HTIMES_LOCAL | Start and end time in 24-hour format in the visitor's timezone, such as 16:30 - 18:30. |
#_12HTIMES_LOCAL | The start time in 12-hour format in the visitor's timezone. In Events Manager 7.5 it does not add the end time, so use #_EVENTTIMES_LOCAL{h:mm A} when you need both. |
A converted date can differ from the date at the event. An evening event in New York falls on the next day for a visitor in Europe.
Links and URLs
Custom attributes
Event attributes are extra fields you define yourself, such as "Dress Code". See Event Attributes.
Bookings
These need bookings to be switched on, both in the settings and for the event. The space counts print 0 otherwise.
| Placeholder | What it shows |
|---|---|
#_BOOKINGFORM | The booking form for the event. |
#_BOOKINGBUTTON | A one-click booking button. It books one space of the first available ticket and skips the booking form and any payment step, so pair it with {is_free}. It works for logged-in visitors only. Its texts are listed under One-click booking button. |
#_SPACES | The total number of spaces for the event. |
#_AVAILABLESPACES | Spaces still available to book. |
#_BOOKEDSPACES | Spaces in confirmed bookings. |
#_PENDINGSPACES | Spaces in bookings awaiting approval. |
#_RESERVEDSPACES | Spaces in unconfirmed bookings that are being held, and so reduce availability. |
#_UNAVAILABLESPACES | Booked and reserved spaces added together. |
#_BOOKINGSCUTOFF | The date and time after which the event can no longer be booked. |
#_BOOKINGSCUTOFFDATE | The date part of the booking cut-off. |
#_BOOKINGSCUTOFFTIME | The time part of the booking cut-off. |
#_ATTENDEES | The avatars of the people attending. |
#_ATTENDEESLIST | A list of the names of the people attending. |
#_ATTENDEESPENDINGLIST | A list of the people whose bookings are pending. |
#_BOOKINGSURL | The URL of the screen for managing this event's bookings. Empty unless the person viewing is allowed to manage them. |
#_BOOKINGSLINK | The event name linked to that screen, under the same condition. |
#_EVENTPRICERANGE | The lowest and highest price among the tickets on sale now, such as $10.00 - $25.00, or one price when they are equal. Shows a zero price once bookings close. Tickets that are not on sale are counted too when Show unavailable tickets? is on. |
#_EVENTPRICERANGEALL | The price range across every ticket, on sale or not. |
#_EVENTPRICEMIN | The lowest price among tickets on sale now. Zero if none is. |
#_EVENTPRICEMAX | The highest price among tickets on sale now. Zero if none is. |
#_EVENTPRICEMINALL | The lowest price of any ticket. |
#_EVENTPRICEMAXALL | The highest price of any ticket. |
Prices follow the currency format in Events then Settings then Bookings then Pricing Options.
RSVP policies
Pro Deadlines and rules for attendees confirming their attendance. See RSVP and the RSVP conditional placeholders.
Waitlists
Pro Information about an event's waitlist. See Waitlists and the waitlist conditional placeholders.
Featured events
| Placeholder | What it shows |
|---|---|
#_EVENTFEATURED | Pro "Yes" for a featured event, nothing otherwise. See Pay to Post. |
Online and hybrid events
Since 7.5 An event can be held at a venue, online, or both. See Hybrid and Virtual Events.
When a custom link is restricted to attendees with online access, these print the link text without the link, or the visitor's own join link if they are logged in with a booking that includes online access. In booking emails use #_BOOKINGJOINLINK. Each location type adds its own arguments, described on the Location Types pages.
Zoom
Contact details
The contact is the event owner chosen in the event editor.
iCal and calendar links
Calendar services
Imported events
Import/Export Details carried over from the source of an imported event. Where the source gave no value, the numeric ones print "N/A".
| Placeholder | What it shows |
|---|---|
#_EMIOSOURCE | The name of the format the event was imported from. Use it inside {is_imported}. |
#_EMIOEVENTURL | The URL of the event at its source. |
#_EMIOBOOKINGSURL | The URL where the source takes bookings. |
#_EMIOBOOKINGSPRICE | The booking price given by the source, to two decimals. |
#_EMIOCURRENCY | The name of the currency of that price. |
#_EMIOCURRENCYSYMBOL | The symbol of that currency. |
#_EMIOSPACES | The total spaces given by the source. |
#_EMIOAVAILABLESPACES | The spaces available at the time of import. |
#_EMIOBOOKEDSPACES | The spaces booked at the time of import. |
Location related placeholders
Use these in location formats, and in event formats for an event with a physical location. For events that may have no venue, wrap them in {has_location_venue}.
Location details
| Placeholder | What it shows |
|---|---|
#_LOCATIONID | The location ID. |
#_LOCATIONPOSTID | The WordPress post ID of the location. |
#_LOCATIONNAME | The location name. |
#_LOCATIONNOTES | The location description. |
#_LOCATIONEXCERPT | The location excerpt if one was written, otherwise the description up to the more tag. |
#_LOCATIONEXCERPT{words,...} | As above, cut to a number of words when there is no written excerpt: #_LOCATIONEXCERPT{10,...}. |
#_LOCATIONEXCERPTCUT | Like #_LOCATIONEXCERPT but always cut to a word count, 55 words ending in [...] by default. Accepts the same arguments. |
#_LOCATIONIMAGE | The location image, full size. |
#_LOCATIONIMAGE{x,y} | The location image at a given width and height, such as #_LOCATIONIMAGE{100,100}. Use 0 for either number to scale that side in proportion. |
#_LOCATIONIMAGEURL | The URL of the location image. |
#_LOCATIONFULLLINE | Address, town, state, postcode and region on one comma-separated line. Empty parts are skipped. |
#_LOCATIONFULLBR | The same parts, one per line. |
Address information
Maps and coordinates
Custom attributes
Location attributes work like event attributes.
Links
Related events
Lists of the events held at the location. Their layout comes from the event list formats in Events then Settings then Formatting then Locations.
Add a number to cap any of the three lists, such as #_LOCATIONNEXTEVENTS{5}. A capped list has no page links.
iCal and RSS feeds
Imported locations
| Placeholder | What it shows |
|---|---|
#_EMIOLOCATIONURL | Import/Export The URL of the location at the source it was imported from. #_EMIOSOURCE also works for locations. |
Booking related placeholders
Use these wherever one booking is displayed, which mostly means the booking emails in Events then Settings then Emails. Event and location placeholders work alongside them and describe the booked event.
Individual booking information
Booking form fields
Pro The answers given on a custom booking form.
| Placeholder | What it shows |
|---|---|
#_BOOKINGFORMCUSTOM{field_id} | The answer to one booking form field. field_id is the field's ID in the form editor. |
#_BOOKINGFORMCUSTOMREG{field_id} | The same for a user field (one stored on the person's profile). |
#_BOOKINGFORMCUSTOMFIELDS | Every field of the booking form with its answer, one per line. |
#_BOOKINGUSERMETA{key} | A user field or user meta value of the person who booked, by its key. |
#_BOOKINGATTENDEES | The attendee form answers for each space booked, grouped by ticket. Needs attendee forms on the event. |
#_BOOKINGFORMCUSTOM_MB{field_id} | In Multiple Bookings Mode, an answer from the checkout form, for use in the emails of the individual bookings. #_BOOKINGFORMCUSTOMREG_MB{field_id} does the same for user fields. |
Signatures
| Placeholder | What it shows |
|---|---|
#_BOOKINGSIGNATUREURL | Pro A secure link to a page where every outstanding signature field on the booking and its attendees can be signed in one visit. Empty once nothing is left to sign. Wrap it in {booking_has_unsigned_signatures} to hide the surrounding text too. |
Pricing
Prices follow the currency format in Events then Settings then Bookings then Pricing Options.
| Placeholder | What it shows |
|---|---|
#_BOOKINGPRICE | The booking total, taxes included. |
#_BOOKINGPRICEWITHTAX | The same total. |
#_BOOKINGPRICEWITHOUTTAX | The total without tax. |
#_BOOKINGPRICETAX | The tax in the total. |
Tickets
All but the first of these describe one ticket. On a booking with several ticket types they describe the first, so use #_BOOKINGTICKETS or #_BOOKINGSUMMARY when a booking can hold more than one.
| Placeholder | What it shows |
|---|---|
#_BOOKINGTICKETS | A list of the tickets booked with quantity and price. The layout comes from the emails/bookingtickets.php template, which you can override. |
#_BOOKINGTICKETNAME | The ticket name. |
#_BOOKINGTICKETDESCRIPTION | The ticket description. |
#_BOOKINGTICKETPRICE | The price of one space of the ticket. |
#_BOOKINGTICKETPRICEWITHTAX | The ticket price with tax. |
#_BOOKINGTICKETPRICEWITHOUTTAX | The ticket price without tax. |
#_BOOKINGTICKETTAX | The tax on the ticket price. |
Each booked space
These belong to one booked space of a ticket, not to the booking as a whole. They work in templates and custom code that loop over a booking's ticket spaces, such as the PDF ticket templates, and not in the email settings.
Online and hybrid access
Since 7.5 For events with an online location. A join link is printed only for an approved booking that includes online access, and it opens shortly before the event starts. See Hybrid and Virtual Events.
Zoom
RSVP
Waitlists
Pro For waitlist reservations, in the waitlist emails. See Waitlists.
Booking dates
When the booking was made, not when the event takes place.
| Placeholder | What it shows |
|---|---|
#_BOOKINGDATE | The date of the booking. |
#_BOOKINGTIME | The time of the booking. |
#_BOOKINGDATETIME | The date and time of the booking. |
Links
| Placeholder | What it shows |
|---|---|
#_BOOKINGLISTURL | The URL of the My Bookings page. |
#_BOOKINGADMINURL | The URL of this booking in the admin area. Keep it to the emails sent to you and to event owners. |
#_BOOKINGADMINLINK | An "Edit Booking" link to the same screen. |
Payments
Pro See Payment Gateways.
| Placeholder | What it shows |
|---|---|
#_BOOKINGTXNID | The payment gateway's transaction ID for a booking paid online. |
#_BOOKINGPAYURL | The booking's link to the payment page. Empty when the payment page is off or the booking can't be paid online. |
#_BOOKINGAMOUNTPAID | The amount paid so far. See Partial Payments. |
#_BOOKINGAMOUNTDUE | The balance still to pay. |
#_BOOKINGDEPOSIT | The deposit for the booking. Empty when the booking has no deposit plan. |
#_BOOKINGBALANCEDUEDATE | The date the balance is due. When no date is set it is the event's start date. |
Coupons
Pro Empty when the booking used no coupon.
Category placeholders
Use these in category formats. In an event format they describe the event's first category.
Category details
| Placeholder | What it shows |
|---|---|
#_CATEGORYNAME | The category name. |
#_CATEGORYID | The category ID. |
#_CATEGORYSLUG | The category slug. |
#_CATEGORYLINK | The category name, linked to the category page. |
#_CATEGORYURL | The URL of the category page. |
#_CATEGORYNOTES | The category description. #_CATEGORYDESCRIPTION prints the same. |
#_CATEGORYEXCERPT | The description cut to 55 words. Accepts {words,...} like #_EVENTEXCERPT. |
#_CATEGORYCOLOR | The category color as a hex code, for inline styles. Categories without one use the default color from the settings. |
#_CATEGORYIMAGE | The category image. |
#_CATEGORYIMAGE{x,y} | The category image at a given width and height, such as #_CATEGORYIMAGE{100,100}. Use 0 for either number to scale that side in proportion. |
#_CATEGORYIMAGEURL | The URL of the category image. |
Related events
Lists of the events in the category, laid out by the event list formats in Events then Settings then Formatting then Event Categories.
With more than one event archetype, these include events of every type. Add a type to show only that one, such as #_CATEGORYNEXTEVENTS{workshops}.
iCal and RSS feeds
Tag placeholders
Use these in tag formats. In an event format they describe the event's first tag.
Tag details
Related events
As with categories, add an archetype to show one type only: #_TAGNEXTEVENTS{workshops}.
iCal and RSS feeds
Placeholders for one setting or email
These are replaced in one place only.
| Placeholder | Where it works | What it shows |
|---|---|---|
#_PAGETITLE | Event Manager titles in Events then Settings then Pages | The title of the events page being viewed. |
#_WITHDRAWAL_STATEMENT | The acknowledgment email of the right of withdrawal form | The customer's withdrawal statement. |
#_WITHDRAWAL_TIMESTAMP | The same email | The date and time the withdrawal was received. |
#_BOOKINGMOVEDFROM | Pro The email sent when a booking is moved | The name and dates of the event the booking was moved from. |
#_BOOKINGMOVEDPAYMENT | Pro The same email | A sentence stating the amount left to pay after the move, with the payment link when it can be paid online. Empty when nothing is owed. |
#_CLAIMURL | Pro The claim link email | The link for claiming the event. |
#_CLAIMEXPIRES | Pro The same email | The date the claim link expires. |
#_ORDERLABEL | Pro Pay to Post order emails | What was bought. Also #_ORDERTYPE, #_ORDERAMOUNT, #_ORDERCREDITS, #_ORDEREVENTNAME and #_ORDEREVENTURL. |
#_BOOKING_X_COMMAND{action} | Connect Message templates in Connect | A reply command for the booking, used by buttons in WhatsApp and Telegram messages. |
Older names that still work
Formats written for old versions keep working. These names print the same as their replacements, which you should use in anything new.
| Old name | Use instead |
|---|---|
#_NAME | #_EVENTNAME in event formats, #_LOCATIONNAME in location formats |
#_NOTES | #_EVENTNOTES |
#_EXCERPT | #_EVENTEXCERPT or #_LOCATIONEXCERPT |
#_EVENTPAGEURL | #_EVENTURL |
#_LINKEDNAME | #_EVENTLINK |
#_ADDBOOKINGFORM, #_REMOVEBOOKINGFORM | #_BOOKINGFORM |
#_SEATS, #_AVAILABLESEATS, #_BOOKEDSEATS | #_SPACES, #_AVAILABLESPACES, #_BOOKEDSPACES |
#_CONTACTPERSON, #_CONTACTMAIL | #_CONTACTNAME, #_CONTACTEMAIL |
#_CATEGORIES | #_EVENTCATEGORIES |
#_LOCATION, #_ADDRESS, #_TOWN | #_LOCATIONNAME, #_LOCATIONADDRESS, #_LOCATIONTOWN |
#_DESCRIPTION | #_LOCATIONNOTES |
#_MAP | #_LOCATIONMAP |
#_LOCATIONPAGEURL | #_LOCATIONURL |
#_LOCATIONEDITURL, #_LOCATIONEDITLINK | #_EDITLOCATIONURL, #_EDITLOCATIONLINK |
#_PASTEVENTS, #_NEXTEVENTS, #_ALLEVENTS | #_LOCATIONPASTEVENTS, #_LOCATIONNEXTEVENTS, #_LOCATIONALLEVENTS |
#_CATEGORYEVENTSPAST, #_CATEGORYEVENTSNEXT, #_CATEGORYEVENTSALL (and the #_TAG equivalents) | #_CATEGORYPASTEVENTS, #_CATEGORYNEXTEVENTS, #_CATEGORYALLEVENTS |
#_RESPNAME, #_RESPEMAIL, #_RESPPHONE | #_BOOKINGNAME, #_BOOKINGEMAIL, #_BOOKINGPHONE |
#_COMMENT | #_BOOKINGCOMMENT |
Conditional placeholders
To show part of a format only when something is true (the event has a venue, bookings are open, the booking includes online access), use conditional placeholders. They wrap around text and other placeholders: {has_bookings}Spaces left: #_AVAILABLESPACES{/has_bookings}.
Examples
An event list item
A format for one event in a list, with a venue line only when there is a venue and a spaces line only when the event takes bookings:
<div class="my-event">
<h3>#_EVENTLINK</h3>
<p>#_EVENTDATES, #_EVENTTIMES</p>
{has_location_venue}<p>#_LOCATIONNAME, #_LOCATIONTOWN</p>{/has_location_venue}
{has_bookings}<p>#_AVAILABLESPACES of #_SPACES spaces left, from #_EVENTPRICEMIN</p>{/has_bookings}
#_EVENTEXCERPT{30,...}
</div>
A custom events list in a page
Put a format between the opening and closing [events_list] shortcode to list this month's events your own way. In the block editor, use a Shortcode or Custom HTML block so the HTML is kept as typed.
<ul>
[events_list scope="month"]<li>#_EVENTLINK, #_EVENTDATES at #_EVENTTIMES</li>[/events_list]
</ul>
Each event becomes one list item with its linked name, dates and times.
A booking confirmation email
Dear #_BOOKINGNAME,
Your #_BOOKINGSPACES space(s) for #_EVENTNAME on #_EVENTDATES are confirmed.
#_BOOKINGSUMMARY
Where: #_BOOKINGLOCATION
Booking reference: #_BOOKING_UUID