{"id":1529334,"date":"2018-05-13T17:54:13","date_gmt":"2018-05-14T00:54:13","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/"},"modified":"2018-05-13T17:54:13","modified_gmt":"2018-05-14T00:54:13","slug":"i-want-to-display-a-custom-field-for-venues-on-the-single-event-page","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/","title":{"rendered":"I want to display a custom field for venues on the single event page"},"content":{"rendered":"<p>Hi! <\/p>\n<p>So I have added the field &#8216;Seating Chart&#8217; to my venues via Advanced Custom Fields. It is a link type of field. <\/p>\n<p>It displays correctly on my venue pages. However, I&#8217;d like to feature the seating chart link on single event pages as well. <\/p>\n<p>The venue&#8217;s address, phone, website, etc. will display on the single event page&#8230;.I just want to display the seating chart link too! <\/p>\n<p>Below is the code that I have right now, which isn&#8217;t working yet :\/<\/p>\n<pre><code>&lt;?php\n\/**\n * Single Event Meta (Venue) Template\n *\n * Override this template in your own theme by creating a file at:\n * [your-theme]\/tribe-events\/modules\/meta\/venue.php\n *\n * @package TribeEventsCalendar\n *\/\n\nif ( ! tribe_get_venue_id() ) {\n\treturn;\n}\n$term = get_queried_object();\n$phone   = tribe_get_phone();\n$website = tribe_get_venue_website_link();\n$seating = get_field(&#039;seating_chart&#039;, $term);\n?&gt;\n\n&lt;div class=&quot;tribe-events-meta-group tribe-events-meta-group-venue&quot;&gt;\n    &lt;?php if ( ! empty( $seating ) ): ?&gt;\n    &lt;div class=&quot;seating-chart&quot;&gt;\n        \t&lt;a href=&quot;&lt;?php echo $seating[&#039;url&#039;]; ?&gt;&quot; class=&quot;red-link&quot; &gt;View Seating Chart&lt;\/a&gt;\n        &lt;\/div&gt;\n    &lt;?php endif ?&gt;\n\t&lt;h3 class=&quot;tribe-events-single-section-title&quot;&gt; &lt;?php esc_html_e( tribe_get_venue_label_singular(), &#039;the-events-calendar&#039; ) ?&gt; &lt;\/h3&gt;\n\t&lt;dl&gt;\n\t\t&lt;?php do_action( &#039;tribe_events_single_meta_venue_section_start&#039; ) ?&gt;\n\n\t\t&lt;dd class=&quot;tribe-venue&quot;&gt; &lt;?php echo tribe_get_venue() ?&gt; &lt;\/dd&gt;\n\n\t\t&lt;?php if ( tribe_address_exists() ) : ?&gt;\n\t\t\t&lt;dd class=&quot;tribe-venue-location&quot;&gt;\n\t\t\t\t&lt;address class=&quot;tribe-events-address&quot;&gt;\n\t\t\t\t\t&lt;?php echo tribe_get_full_address(); ?&gt;\n\n\t\t\t\t\t&lt;?php if ( tribe_show_google_map_link() ) : ?&gt;\n\t\t\t\t\t\t&lt;?php echo tribe_get_map_link_html(); ?&gt;\n\t\t\t\t\t&lt;?php endif; ?&gt;\n\t\t\t\t&lt;\/address&gt;\n\t\t\t&lt;\/dd&gt;\n\t\t&lt;?php endif; ?&gt;\n\n\t\t&lt;?php if ( ! empty( $phone ) ): ?&gt;\n\t\t\t&lt;dt&gt; &lt;?php esc_html_e( &#039;Phone:&#039;, &#039;the-events-calendar&#039; ) ?&gt; &lt;\/dt&gt;\n\t\t\t&lt;dd class=&quot;tribe-venue-tel&quot;&gt; &lt;?php echo $phone ?&gt; &lt;\/dd&gt;\n\t\t&lt;?php endif ?&gt;\n\n\t\t&lt;?php if ( ! empty( $website ) ): ?&gt;\n\t\t\t&lt;dt&gt; &lt;?php esc_html_e( &#039;Website:&#039;, &#039;the-events-calendar&#039; ) ?&gt; &lt;\/dt&gt;\n\t\t\t&lt;dd class=&quot;url&quot;&gt; &lt;?php echo $website ?&gt; &lt;\/dd&gt;\n\t\t&lt;?php endif ?&gt;\n\n\t\t&lt;?php do_action( &#039;tribe_events_single_meta_venue_section_end&#039; ) ?&gt;\n\t&lt;\/dl&gt;\n&lt;\/div&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1529334","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>I want to display a custom field for venues on the single event page -<\/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\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I want to display a custom field for venues on the single event page -\" \/>\n<meta property=\"og:description\" content=\"Hi! So I have added the field &#8216;Seating Chart&#8217; to my venues via Advanced Custom Fields. It is a link type of field. It displays correctly on my venue pages. However, I&#8217;d like to feature the seating chart link on single event pages as well. The venue&#8217;s address, phone, website, etc. will display on the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/\",\"name\":\"I want to display a custom field for venues on the single event page -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-05-14T00:54:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"I want to display a custom field for venues on the single event page\"}]},{\"@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":"I want to display a custom field for venues on the single event page -","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\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/","og_locale":"en_US","og_type":"article","og_title":"I want to display a custom field for venues on the single event page -","og_description":"Hi! So I have added the field &#8216;Seating Chart&#8217; to my venues via Advanced Custom Fields. It is a link type of field. It displays correctly on my venue pages. However, I&#8217;d like to feature the seating chart link on single event pages as well. The venue&#8217;s address, phone, website, etc. will display on the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/","name":"I want to display a custom field for venues on the single event page -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-05-14T00:54:13+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-want-to-display-a-custom-field-for-venues-on-the-single-event-page\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"I want to display a custom field for venues on the single event page"}]},{"@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\/1529334","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\/1529334\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1529334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}