Let’s say you’ve just created tickets for your event using the Event Tickets plugin — with the Event Tickets Plus add-on installed — and those tickets are displaying nicely on your event page. Now, what if you want to embed your tickets, say, on your homepage? Maybe you’ve created a landing page promoting the event and would like to drop the tickets in there.
That’s exactly what the
[tribe_tickets_rsvp] shortcodes are designed to do. Add those to any WordPress page or post (including custom post types) to display tickets and RSVPs — or both! — for a given event.
Tribe Tickets shortcode
[tribe_tickets] shortcode displays the tickets block when used on a WordPress page or post. It has one required parameter, the
post_id parameter is the ID of the event (post or page, depending on your site configuration) where the tickets were created.
Finding the Post ID can be tricky in WordPress. One way is by editing the page or post and locating it in the browser’s address bar.
Another way to locate the a page or post ID is to navigate to the attendee report for that event.
Tribe Tickets RSVP shortcode
This shortcode displays the RSVP form. It has the same required
post_id parameter as the ticket shortcode. The
post_id parameter is the ID of the event, page, or post where the RSVP was created.
Displaying a Ticket via Shortcode
You can also use a shortcode to display singular or multiple tickets on a page or post. To do this, you can use the
ticket_id parameter, so it’ll look something like this:
ticket_id="30"]. You can find the ticket ID in the attendee report.