Shortcodes provide an easy way to embed ticket-related content on any WordPress page, post or custom post type.
? Looking for calendar shortcodes instead? There are plenty of examples for you to check out.
Event Tickets shortcodes
Our free Event Tickets plugin includes a shortcode that embeds the confirmation page that displays when an attendee successfully completes a ticket purchase using PayPal. It’s a great way to customize the confirmation without having to touch any code while allowing you to use your own page templates.
Event Tickets also includes a shortcode to display a list of events that a user has registered for. Why would you want that? Say you have a confirmation page you made using the shortcode above. You could also drop the following shortcode in the same page to display other events that the user is also attending.
Event Tickets Plus shortcodes
Event Tickets Plus includes a handful of other shortcodes that make tickets much more portable while providing awesome ways to communicate with attendees.
This shortcode embeds the ticket form for an event on any WordPress page or post. So, for example, if you have an event that you have mention in a blog post, drop that shortcode directly in the post and users will be able to register for the event right there instead of having to go to the event!
Here is the ticket for this online event embedded on this page with the shortcode:
Event Tickets Plus also allows you to embed RSVPs the same way, but using this shortcode instead. Here are the RSVPs that were created for this event.
Example using RSVP for an online event.
Embedding a list of attendees
Wouldn’t it be great to show all the people who are attending an event? That’s definitely an option in Event Tickets Plus, but you can also use a shortcode to display the same list on any WordPress page or post.
0 people are attending Virtual Event With Ticket Sales
Showing content to specific users
Get ready for this one. Using either of the shortcodes above, you can display content to certain people based on whether they have purchased a ticket or submitted an RSVP for an event. This way, it’s possible to published content and display it to someone if they have — or haven’t — registered for the event.
What’s this great for? So many things:
- Displaying a livestream video only to users who have registered for the event.
- Sharing links or other resources to users who have registered for the event.
- Showing a promotional video if the user has not registered for the event.
- Providing coupon codes as an incentive for users who have not registered for the event.
In this example, you will see a fancy notice if you have registered for this event. Otherwise, you’ll see nothing.
Now, you should see a notice to log in and register for the event if you have not registered. But you won’t see anything if you are logged in and have already registered for the event.
Pretty great, right? All of these shortcodes give you superhuman powers to promote your events anywhere on the site while making it easier for users to register and for you to communicate with them.