{"id":1489706,"date":"2018-03-27T09:21:46","date_gmt":"2018-03-27T16:21:46","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/"},"modified":"2018-03-27T09:21:46","modified_gmt":"2018-03-27T16:21:46","slug":"need-template-help-with-list-loop-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/","title":{"rendered":"Need template help with list\/loop.php"},"content":{"rendered":"<p>HI we are showing the list\/loop.php  on one page with some customizations that work when we are showing a particular event category.<\/p>\n<p>BUT, we need to basically duplicate the \/loop\/single-event   so that we can customize it for a different page with all events.<\/p>\n<p>so we want to show the event loop in list form, but on one page the single-events.php needs to be a different template so we can customize it separately.<\/p>\n<p>Basically, the php in the single-events.php is customized for one page, but we basically then need to dupe the template so we can show it a different way, just basically make it look different, on another page.<\/p>\n<p>We have to change the php, so just doing css worn&#8217;t cut it.<\/p>\n<p>what is the best way to create a second \/list\/loop.php  and list\/single-event.php so we can customize one for one page, and one for another.?<\/p>\n<p>No change in the event data. just can&#8217;t achieve the difference with CSS.<\/p>\n<p>so we&#8217;re adapting the list to look both ways, but can&#8217;t just achieve with css.<br \/>\nWe need basically a second single-event.php to customize how the list looks on a second page.<\/p>\n","protected":false},"template":"","class_list":["post-1489706","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>Need template help with list\/loop.php -<\/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\/need-template-help-with-list-loop-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Need template help with list\/loop.php -\" \/>\n<meta property=\"og:description\" content=\"HI we are showing the list\/loop.php on one page with some customizations that work when we are showing a particular event category. BUT, we need to basically duplicate the \/loop\/single-event so that we can customize it for a different page with all events. so we want to show the event loop in list form, but [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/\" \/>\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\/need-template-help-with-list-loop-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/\",\"name\":\"Need template help with list\/loop.php -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-03-27T16:21:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/#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\":\"Need template help with list\/loop.php\"}]},{\"@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":"Need template help with list\/loop.php -","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\/need-template-help-with-list-loop-php\/","og_locale":"en_US","og_type":"article","og_title":"Need template help with list\/loop.php -","og_description":"HI we are showing the list\/loop.php on one page with some customizations that work when we are showing a particular event category. BUT, we need to basically duplicate the \/loop\/single-event so that we can customize it for a different page with all events. so we want to show the event loop in list form, but [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/","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\/need-template-help-with-list-loop-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/","name":"Need template help with list\/loop.php -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-03-27T16:21:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-template-help-with-list-loop-php\/#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":"Need template help with list\/loop.php"}]},{"@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\/1489706","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\/1489706\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1489706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}