{"id":994792,"date":"2015-08-10T09:53:31","date_gmt":"2015-08-10T16:53:31","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/"},"modified":"2015-08-15T13:26:23","modified_gmt":"2015-08-15T20:26:23","slug":"recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/","title":{"rendered":"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1"},"content":{"rendered":"<p>Hi again!<\/p>\n<p>Our QA Engineer has identified what appears to be another issue with the Events Calendar Pro 3.11.1 plugin. This one has to do with using the <code>tribe_all_occurences_link<\/code> function.<\/p>\n<p>Synopsis:<br \/>\nWe&#8217;re using Events Calendar data to output events on non-ECP template pages. When the event being output is recurring, we get the all occurrences link instead of the direct event link. What&#8217;s happening is when two events have the exact same recurrence settings (i.e. Daily recurrence until 8\/31), the first instance of one of these recurring events is pulling the other event&#8217;s all occurrences link. After this, everything works as expected.<\/p>\n<p>I&#8217;ve been able to reproduce this in a completely clean install of WordPress running the TwentyFifteen theme and ECP v3.11.1. Here&#8217;s a simple example test page template which will hopefully help illustrate the issue:<\/p>\n<pre><code>&lt;?php\n\/* Template Name: Event Test Template *\/\n$arrEvents = tribe_get_events();\n?&gt;\n\n&lt;?php foreach($arrEvents as $objEvent): ?&gt;\n&lt;div class=&quot;post-&lt;?php echo $objEvent-&gt;ID ?&gt;&quot;&gt;\n    &lt;p&gt;Event Name: &lt;?php echo $objEvent-&gt;post_title ?&gt;&lt;\/p&gt;\n    &lt;p&gt;Is Recurring Event: &lt;?php echo tribe_is_recurring_event($objEvent-&gt;ID) ?&gt;&lt;\/p&gt;\n    &lt;p&gt;Event All Link: &lt;?php echo tribe_all_occurences_link($objEvent-&gt;ID, false) ?&gt;&lt;\/p&gt;\n&lt;\/div&gt;\n&lt;?php endforeach; ?&gt;<\/code><\/pre>\n<p>Try creating two recurring events with the same recurrence settings and create a page using this template to see what I&#8217;m talking about. The test events I created the recurrence with also happened to start and end on the same date\/times if that makes a difference.<\/p>\n<p>Thanks!<\/p>\n<p>P.S. You guys don&#8217;t have a bug bounty program, do you? :p<\/p>\n","protected":false},"template":"","class_list":["post-994792","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>Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -<\/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\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -\" \/>\n<meta property=\"og:description\" content=\"Hi again! Our QA Engineer has identified what appears to be another issue with the Events Calendar Pro 3.11.1 plugin. This one has to do with using the tribe_all_occurences_link function. Synopsis: We&#8217;re using Events Calendar data to output events on non-ECP template pages. When the event being output is recurring, we get the all occurrences [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-15T20:26:23+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\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/\",\"name\":\"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-10T16:53:31+00:00\",\"dateModified\":\"2015-08-15T20:26:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/#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\":\"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1\"}]},{\"@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":"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -","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\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/","og_locale":"en_US","og_type":"article","og_title":"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -","og_description":"Hi again! Our QA Engineer has identified what appears to be another issue with the Events Calendar Pro 3.11.1 plugin. This one has to do with using the tribe_all_occurences_link function. Synopsis: We&#8217;re using Events Calendar data to output events on non-ECP template pages. When the event being output is recurring, we get the all occurrences [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/","article_modified_time":"2015-08-15T20:26:23+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\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/","name":"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-10T16:53:31+00:00","dateModified":"2015-08-15T20:26:23+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-event-all-occurrences-link-issue-for-events-calendar-pro-3-11-1\/#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":"Recurring event all occurrences link issue for Events Calendar Pro 3.11.1"}]},{"@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\/994792","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/994792\/revisions"}],"predecessor-version":[{"id":1515362,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/994792\/revisions\/1515362"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=994792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}