{"id":1966520,"date":"2025-09-02T06:10:24","date_gmt":"2025-09-02T10:10:24","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1966520"},"modified":"2025-09-02T06:10:25","modified_gmt":"2025-09-02T10:10:25","slug":"adding-event-description-into-pdf-ticket","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/adding-event-description-into-pdf-ticket\/","title":{"rendered":"Adding event description into PDF ticket"},"content":{"rendered":"\n<p>By default, <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-event-tickets\/\">Event Tickets Plus<\/a> generates <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/event-tickets-wallet-plus\/\">PDF tickets<\/a> without including the <em>event description<\/em>. However, with a template override and a snippet of code, you can display the description under the event title.<\/p>\n\n\n\n<p>The plugin&#8217;s default PDF layout loads certain template parts\u2014such as the event title, ticket info, and sidebar\u2014but does <strong>not<\/strong> include the event content (i.e., description) within the PDF body.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-by-step-how-to-show-the-description-below-the-title\">Step-by-Step: How to Show the Description Below the Title<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Locate and copy <code>post-title.php<\/code> template file in the plugin directory:<br><code>\/wp-content\/plugins\/event-tickets-plus\/src\/views\/tickets-wallet-plus\/pdf\/pass\/body\/<\/code><br><\/li>\n\n\n\n<li>In your child theme directory, create the following path and place the copied file:<br><code>[your-child-theme]\/tribe\/tickets-wallet-plus\/pdf\/pass\/body\/<\/code><br><\/li>\n\n\n\n<li>Open the file in a text editor and add the following code just after the <code>&lt;\/tr><\/code> tag:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;tr style=&quot;font-weight:normal;&quot;&gt;\n  &lt;td&gt;\n    &lt;?php echo esc_html( $post-&gt;post_content ); ?&gt;\n  &lt;\/td&gt;\n&lt;\/tr&gt;\n<\/pre><\/div>\n\n\n<p>Save the file and ensure you clear any caching mechanisms in place. The description should now appear in the generated PDF tickets, typically below the event title:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1110\" height=\"788\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-19-at-11.11.10-AM.png\" alt=\"\" class=\"wp-image-1966521\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-19-at-11.11.10-AM.png 1110w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-19-at-11.11.10-AM-300x213.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-19-at-11.11.10-AM-1024x727.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-19-at-11.11.10-AM-768x545.png 768w\" sizes=\"auto, (max-width: 1110px) 100vw, 1110px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-it-works\">How It Works<\/h2>\n\n\n\n<p>Event Tickets Plus uses four template files (<code>styles.php<\/code>, <code>header.php<\/code>, <code>body.php<\/code>, and <code>footer.php<\/code>) to generate PDF tickets. By creating overrides in your theme, you gain control over these templates and can inject custom content like the event description<\/p>\n\n\n\n<p>Here is a guide for customizing the PDF ticket template files:&nbsp;<a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/customizing-pdf-ticket-styles\/\">Customizing PDF Ticket Styles<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-tips\">Tips<\/h2>\n\n\n\n<p>Ensure your child theme path matches exactly:<br><code>tribe\/tickets-wallet-plus\/pdf\/pass\/body\/post-title.php<\/code><\/p>\n\n\n\n<p>If changes fail to reflect, remember to clear cache and verify your directory structure. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, Event Tickets Plus generates PDF tickets without including the event description. However, with a template override and a snippet of code, you can display the description under the event title. The plugin&#8217;s default PDF layout loads certain template parts\u2014such as the event title, ticket info, and sidebar\u2014but does not include the event content&#8230;<\/p>\n","protected":false},"author":60,"featured_media":1955565,"comment_status":"open","ping_status":"open","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":[24,84],"tags":[25,292,58,207],"stellar-product-taxonomy":[156],"class_list":["post-1966520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-theming-overview","tag-customizations","tag-pdf-ticket","tag-php","tag-template-override","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":84,"label":"Templating &amp; Layout"}],"post_tag":[{"value":25,"label":"Customizations"},{"value":292,"label":"pdf ticket"},{"value":58,"label":"PHP"},{"value":207,"label":"Template override"}],"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":"Atousa","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/atousa\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":84,"name":"Templating &amp; Layout","slug":"theming-overview","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":24,"count":59,"filter":"raw","term_order":"0","cat_ID":84,"category_count":59,"category_description":"","cat_name":"Templating &amp; Layout","category_nicename":"theming-overview","category_parent":24}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":292,"name":"pdf ticket","slug":"pdf-ticket","term_group":0,"term_taxonomy_id":292,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":128,"filter":"raw","term_order":"0"},{"term_id":207,"name":"Template override","slug":"template-override","term_group":0,"term_taxonomy_id":207,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1966520"}],"version-history":[{"count":2,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966520\/revisions"}],"predecessor-version":[{"id":1966645,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966520\/revisions\/1966645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1966520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1966520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1966520"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1966520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}