{"id":29103,"date":"2012-12-06T18:35:21","date_gmt":"2012-12-07T02:35:21","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/"},"modified":"2012-12-06T18:35:21","modified_gmt":"2012-12-07T02:35:21","slug":"wptouch-with-events-list-template-not-working","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/","title":{"rendered":"WPTouch with Events List template not working"},"content":{"rendered":"<p>We are having an issue using WPTouch &amp; Events Calendar Pro. I&#8217;m not sure how much you guys know about WP Touch, but I know you&#8217;ve looked into issues in the past, so hopefully you can help to give some insight into this issue \ud83d\ude42<\/p>\n<p>We had it all set up and working properly initially, but recently noticed that the events page is no longer loading our list.php template in the events folder of our WP Touch theme. We tried updating from 2.09 to 2.10, but the issue was not resolved. I raised the issue with WP Touch and they&#8217;ve come up with a couple of workarounds, none of which we&#8217;re happy with. <\/p>\n<p>This morning I had an idea. If it&#8217;s not loading the template by itself, maybe it just needs a bit of prompting through a conditional statement. Trying to implement this as we speak, but you guys might be able to help.<\/p>\n<p>So what I&#8217;m going to do is add to the WP Touch blog loop (blog-loop.php)<br \/>\na conditional that says if is event list page -&gt; load events\/list.php, else show the blog loop.<br \/>\nI have had trouble targeting the events list page (this is also split into categories, so I need all to include the category pages as well, therefore I cannot use the specific page name. What if statement do I need to target this page. <\/p>\n<p>I&#8217;ve tried a couple of things, like:<br \/>\n<code><br \/>\nTemplate here<br \/>\n<\/code><\/p>\n<p>I&#8217;ve also tried:<br \/>\n<code>if ( (get_post_type() == 'tribe_events' &amp;&amp; tribe_is_upcoming() &amp;&amp; !is_single() &amp;&amp; !is_page()))<\/code><\/p>\n<p>Both of these (as well as a couple of other different conditional statements I tried) resulted in the &#8220;Template here&#8221; showing for all of the pages, so the conditional is not working. Not sure what I&#8217;m doing wrong.<\/p>\n<p>Any help would be hugely appreciated!<\/p>\n","protected":false},"template":"","class_list":["post-29103","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>WPTouch with Events List template not working -<\/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\/wptouch-with-events-list-template-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WPTouch with Events List template not working -\" \/>\n<meta property=\"og:description\" content=\"We are having an issue using WPTouch &amp; Events Calendar Pro. I&#8217;m not sure how much you guys know about WP Touch, but I know you&#8217;ve looked into issues in the past, so hopefully you can help to give some insight into this issue \ud83d\ude42 We had it all set up and working properly initially, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/\" \/>\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\/wptouch-with-events-list-template-not-working\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/\",\"name\":\"WPTouch with Events List template not working -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-12-07T02:35:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/#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\":\"WPTouch with Events List template not working\"}]},{\"@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":"WPTouch with Events List template not working -","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\/wptouch-with-events-list-template-not-working\/","og_locale":"en_US","og_type":"article","og_title":"WPTouch with Events List template not working -","og_description":"We are having an issue using WPTouch &amp; Events Calendar Pro. I&#8217;m not sure how much you guys know about WP Touch, but I know you&#8217;ve looked into issues in the past, so hopefully you can help to give some insight into this issue \ud83d\ude42 We had it all set up and working properly initially, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/","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\/wptouch-with-events-list-template-not-working\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/","name":"WPTouch with Events List template not working -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-12-07T02:35:21+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wptouch-with-events-list-template-not-working\/#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":"WPTouch with Events List template not working"}]},{"@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\/29103","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\/29103\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=29103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}