{"id":1260814,"date":"2017-03-28T08:19:29","date_gmt":"2017-03-28T15:19:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/"},"modified":"2017-03-29T10:36:19","modified_gmt":"2017-03-29T17:36:19","slug":"new-template-not-override","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/","title":{"rendered":"New Template (not override)"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am attempting to create a template to contain a print-friendly version of a list view of my calendar. My list view also contains a few custom fields using (ACF) and I want it to only display a specific week.<\/p>\n<p><em>Note: I do not want to override an existing template. I want to create a new one.<\/em><\/p>\n<p>My approach was:<\/p>\n<p>1) copy <strong>src\/views\/list\/*<\/strong> to <strong>my-child-theme\/tribe-events\/list-print\/<\/strong> directory.<br \/>\n2) create a new standard WordPress template, moving the content from src\/views\/list\/content.php into WordPress template, and changing all instances of tribe_get_template_part so that<\/p>\n<p><code>tribe_get_template_part( 'list\/nav', 'header' )<\/code><\/p>\n<p>becomes<\/p>\n<p><code>tribe_get_template_part( 'list-print\/nav', 'header' )<\/code><\/p>\n<p>The page is displaying the basic event information, but the venue information doesn&#8217;t seem to be populating.<\/p>\n<p>I&#8217;m wondering:<br \/>\n1) what is the correct way to create a WordPress template (not page or post) that contains a list view which I can style for print and<br \/>\n2) if there is a better way of accomplishing this?<\/p>\n<p>BTW &#8211; I first attempted shortcodes but they don&#8217;t use my ACF fields and are limited in filtering options.<\/p>\n<p>Thanks for your help!<\/p>\n","protected":false},"template":"","class_list":["post-1260814","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>New Template (not override) -<\/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\/new-template-not-override\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Template (not override) -\" \/>\n<meta property=\"og:description\" content=\"Hello, I am attempting to create a template to contain a print-friendly version of a list view of my calendar. My list view also contains a few custom fields using (ACF) and I want it to only display a specific week. Note: I do not want to override an existing template. I want to create [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-29T17:36:19+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\/new-template-not-override\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/\",\"name\":\"New Template (not override) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-03-28T15:19:29+00:00\",\"dateModified\":\"2017-03-29T17:36:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/#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\":\"New Template (not override)\"}]},{\"@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":"New Template (not override) -","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\/new-template-not-override\/","og_locale":"en_US","og_type":"article","og_title":"New Template (not override) -","og_description":"Hello, I am attempting to create a template to contain a print-friendly version of a list view of my calendar. My list view also contains a few custom fields using (ACF) and I want it to only display a specific week. Note: I do not want to override an existing template. I want to create [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/","article_modified_time":"2017-03-29T17:36:19+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\/new-template-not-override\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/","name":"New Template (not override) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-03-28T15:19:29+00:00","dateModified":"2017-03-29T17:36:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/new-template-not-override\/#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":"New Template (not override)"}]},{"@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\/1260814","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1260814\/revisions"}],"predecessor-version":[{"id":1261597,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1260814\/revisions\/1261597"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1260814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}