{"id":75240,"date":"2013-11-07T13:48:23","date_gmt":"2013-11-07T21:48:23","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/"},"modified":"2013-11-26T17:05:53","modified_gmt":"2013-11-27T01:05:53","slug":"displaying-fields-in-email-php-that-arent-included-in-the-default-template","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/","title":{"rendered":"Displaying fields in email.php that aren&#8217;t included in the default template"},"content":{"rendered":"<p>I&#8217;ve scoured all of the documentation and primers over and over. I have my customized email.php working in my child theme. There are a few data points that I&#8217;d like to use but I can&#8217;t seem to find the right calls for them. [QUESTION 1] Do you have a list of available calls AND how they need to be referenced in the email.php? This has been holding me back from fully customizing the email.<\/p>\n<p>For example:<br \/>\nI need the original face-value of the ticket. I tried this unsuccessfully on a free event (I assumed it would show $0 or &#8220;Free&#8221;):<br \/>\necho tribe_get_cost( $event-&gt;ID );<\/p>\n<p>Also, I need to display the data from a custom field that will only display on the email and not on the event page on the website. This is for event-specific instructions such as parking locations. I created a custom text field through Events &gt; Settings &gt; Additional Fields with a field label of &#8220;Additional Info on Emailed Tickets&#8221;. [QUESTION 2] How can I display the contents in my email.php? [QUESTION 3] Does the (tiny) text input box accept HTML or will it get stripped? I assumed incorrectly that the Additional Fields tab would also show me the field name to use in my code. I tried this unsuccessfully:<br \/>\necho tribe_get_custom_field(&#8216;_ecp_custom_1&#8217;, $event-&gt;ID)<\/p>\n","protected":false},"template":"","class_list":["post-75240","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Displaying fields in email.php that aren&#039;t included in the default template -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying fields in email.php that aren&#039;t included in the default template -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve scoured all of the documentation and primers over and over. I have my customized email.php working in my child theme. There are a few data points that I&#8217;d like to use but I can&#8217;t seem to find the right calls for them. [QUESTION 1] Do you have a list of available calls AND how [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/\" \/>\n<meta property=\"article:modified_time\" content=\"2013-11-27T01:05:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/\",\"name\":\"Displaying fields in email.php that aren't included in the default template -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-11-07T21:48:23+00:00\",\"dateModified\":\"2013-11-27T01:05:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Displaying fields in email.php that aren&#8217;t included in the default template\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Displaying fields in email.php that aren't included in the default template -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/","og_locale":"en_US","og_type":"article","og_title":"Displaying fields in email.php that aren't included in the default template -","og_description":"I&#8217;ve scoured all of the documentation and primers over and over. I have my customized email.php working in my child theme. There are a few data points that I&#8217;d like to use but I can&#8217;t seem to find the right calls for them. [QUESTION 1] Do you have a list of available calls AND how [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/","article_modified_time":"2013-11-27T01:05:53+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/","name":"Displaying fields in email.php that aren't included in the default template -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-11-07T21:48:23+00:00","dateModified":"2013-11-27T01:05:53+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/displaying-fields-in-email-php-that-arent-included-in-the-default-template\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Displaying fields in email.php that aren&#8217;t included in the default template"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/75240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/75240\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=75240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}