{"id":1947233,"date":"2020-05-20T07:55:53","date_gmt":"2020-05-20T11:55:53","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/?post_type=tribe-knowledgebase&#038;p=1947233"},"modified":"2026-04-20T20:28:31","modified_gmt":"2026-04-21T00:28:31","slug":"tickets-shortcodes","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/tickets-shortcodes\/","title":{"rendered":"Embedding Tickets, RSVPs, and Attendees with Shortcodes"},"content":{"rendered":"\n<p>Event Tickets and Event Tickets Plus provide four shortcodes for embedding ticketing-related content outside the event page itself. Which one to use depends on what you want to show:<\/p>\n\n\n\n<p><strong>For a specific event<\/strong> (ticket forms, RSVP forms, or public attendee lists):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>[tribe_tickets]<\/code> \u2014 the ticket form for an event<\/li>\n\n\n\n<li><code>[tribe_tickets_rsvp]<\/code> \u2014 the RSVP form for an event<\/li>\n\n\n\n<li><code>[tribe_tickets_attendees]<\/code> \u2014 the public attendees list for an event<\/li>\n<\/ul>\n\n\n\n<p><strong>For the currently logged-in user<\/strong> (a personal list of events they&#8217;re attending):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>[tribe-user-event-confirmations]<\/code> \u2014 a list of upcoming events the logged-in user has tickets for or has RSVP&#8217;d to<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2020\/03\/ext-ticket-shortcode-default.png\" alt=\"A webpage with an embedded ticket form\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-finding-the-post-id\">Finding the Post ID<\/h2>\n\n\n\n<p>The first three shortcodes all embed ticketing content for a specific event, page, or post. They share the same requirements and use the same <code>post_id<\/code> parameter to identify which event to display.<\/p>\n\n\n\n<p>All three event-oriented shortcodes accept a <code>post_id<\/code> parameter \u2014 the ID of the event (or page or post) that owns the tickets, RSVPs, or attendees you want to embed. You can find this ID in two ways.<\/p>\n\n\n\n<p>From the editor: open the event for editing and look at the browser address bar. The auto-generated post ID appears in the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/wp-content\/uploads\/2020\/05\/wordpress-admin-editor-page-post-id-1024x719.png\" alt=\"The WordPress block editor with the page ID highlighted in the browser's address bar\"\/><\/figure>\n\n\n\n<p>From the <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/tickets-managing-your-orders-and-attendees\/#Attendee_list\">attendee report<\/a>: the event&#8217;s post ID is displayed on that page as well.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/wp-content\/uploads\/2020\/05\/IDs-for-Event-Tickets-Plus-Shortcodes-1024x755.png\" alt=\"The attendee reports page with the event post ID highlighted\"\/><\/figure>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h4 class=\"wp-block-heading\" id=\"h-using-shortcodes-with-pagebuilders\">Using Shortcodes with Pagebuilders<\/h4>\n\n\n\n<p>In some cases \u2014 building dynamic templates with a page builder like Elementor or Avada, or manually rendering content with <code>do_shortcode()<\/code> \u2014 you can omit the <code>post_id<\/code> parameter entirely. If no <code>post_id<\/code> is provided, these two shortcodes automatically detect and use the ID of the current post. This only works when the shortcode is rendered in the context of a specific post or event.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-tickets\">Display Tickets<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets post_id=\"123\"]<\/code><\/pre>\n\n\n\n<p>This shortcode displays the tickets block when used on a WordPress page or post. To embed a single specific ticket rather than the whole block, add a <code>ticket_id<\/code> parameter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets post_id=\"12\" ticket_id=\"29\"]<\/code><\/pre>\n\n\n\n<p>You can find ticket IDs in the attendee report alongside the event&#8217;s post ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-rsvps\">Display RSVPs<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets_rsvp post_id=\"123\"]<\/code><\/pre>\n\n\n\n<p>This shortcode displays the RSVP form for the event identified by <code>post_id<\/code>. Like <code>[tribe_tickets]<\/code>, it also accepts a <code>ticket_id<\/code> parameter to embed a specific RSVP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets_rsvp post_id=\"13\" ticket_id=\"30\"]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-attendees-list\">Display Attendees List<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets_attendees post_id=\"123\"]<\/code><\/pre>\n\n\n\n<p>This shortcode displays the <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/public-attendee-list\/\">public attendees list<\/a> for the specified event. It accepts two parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>post_id<\/code> (required)<\/strong> \u2014 the ID of the event whose attendees you want to display.<\/li>\n\n\n\n<li><strong><code>title<\/code> (optional)<\/strong> \u2014 a heading to display above the attendees list.<\/li>\n<\/ul>\n\n\n\n<p>For example, this embeds the public attendee list for an event with ID 123 and displays &#8220;Here&#8217;s who else is going!&#8221; above it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe_tickets_attendees post_id=\"123\" title=\"Here's who else is going!\"]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/wp-content\/uploads\/2020\/05\/public-attendees-embed-1024x323.png\" alt=\"An embedded public attendees list on a WordPress page\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-an-attendees-events\">Display an Attendee&#8217;s Events<\/h2>\n\n\n\n<p>This shortcode displays a list of upcoming events that the <em>currently logged-in user<\/em> has tickets for or has RSVP&#8217;d to. It&#8217;s a great fit for a &#8220;My Account&#8221; page, user dashboard, or any other place where users manage their own activity on your site.<\/p>\n\n\n\n<p>Unlike the event-oriented shortcodes above, this one takes no parameters \u2014 it automatically looks up the currently logged-in user and shows their event confirmations.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;tribe-user-event-confirmations]<\/code><\/pre>\n\n\n\n<p><strong>\u26a0\ufe0f Requirement:<\/strong> This shortcode only works if your site requires users to be logged in before buying tickets or submitting RSVPs. Enable this under <strong>Tickets \u2192 Settings \u2192 General<\/strong>. Without that setting, ticket purchases and RSVPs aren&#8217;t linked to user accounts, so there&#8217;s nothing for the shortcode to display.<\/p>\n\n\n\n<p><strong>\u26a0\ufe0f Note:<\/strong> The shortcode shows only <em>upcoming<\/em> events. Past event confirmations are not included in the list.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-display-states\">Display States<\/h4>\n\n\n\n<p>The shortcode renders differently depending on the viewer&#8217;s login status and whether they have any upcoming confirmations:<\/p>\n\n\n\n<p><strong>Logged-in user with event confirmations:<\/strong> the shortcode displays a list of their upcoming events.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/wp-content\/uploads\/2020\/06\/your-upcoming-events-2-1024x636.png\" alt=\"A list of upcoming event confirmations on a My Account page\"\/><\/figure>\n\n\n\n<p><strong>Logged-in user with no confirmations:<\/strong> the shortcode displays a &#8220;no upcoming events&#8221; message.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/wp-content\/uploads\/2020\/06\/No-Upcoming-Events-1024x523.png\" alt=\"The 'no upcoming events' state of the shortcode\"\/><\/figure>\n\n\n\n<p><strong>Not logged in:<\/strong> the shortcode renders nothing. Pair it with a login prompt on the same page if the page is accessible to anonymous visitors.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Event Tickets and Event Tickets Plus provide four shortcodes for embedding ticketing-related content outside the event page itself. Which one to use depends on what you want to show: For a specific event (ticket forms, RSVP forms, or public attendee lists): For the currently logged-in user (a personal list of events they&#8217;re attending): Finding the&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[77,88],"tags":[],"stellar-product-taxonomy":[156],"class_list":["post-1947233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shortcodes","category-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":77,"label":"Shortcodes"},{"value":88,"label":"Ticketing"}],"stellar-product-taxonomy":[{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":77,"name":"Shortcodes","slug":"shortcodes","term_group":0,"term_taxonomy_id":77,"taxonomy":"category","description":"","parent":61,"count":9,"filter":"raw","term_order":"0","cat_ID":77,"category_count":9,"category_description":"","cat_name":"Shortcodes","category_nicename":"shortcodes","category_parent":61},{"term_id":88,"name":"Ticketing","slug":"tickets","term_group":0,"term_taxonomy_id":88,"taxonomy":"category","description":"","parent":61,"count":49,"filter":"raw","term_order":"0","cat_ID":88,"category_count":49,"category_description":"","cat_name":"Ticketing","category_nicename":"tickets","category_parent":61}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1947233"}],"version-history":[{"count":7,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947233\/revisions"}],"predecessor-version":[{"id":1969568,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947233\/revisions\/1969568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1947233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1947233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1947233"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1947233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}