{"id":1155172,"date":"2016-08-23T19:45:42","date_gmt":"2016-08-24T02:45:42","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/"},"modified":"2016-09-07T13:46:57","modified_gmt":"2016-09-07T20:46:57","slug":"tribe_get_recurrence_start_dates-not-working-as-expected","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/","title":{"rendered":"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected"},"content":{"rendered":"<p>Hi there.<\/p>\n<p>Trying to get all recurring start dates using &#8220;<strong>tribe_get_recurrence_start_dates<\/strong>&#8221; function, however it appears to not be working properly&#8230;or I am just messing something up.<\/p>\n<p>See the attached image for how the recurrences are set up for this particular event.<\/p>\n<p>In <strong>single-event.php<\/strong> (theme override), I&#8217;m using the following code to output an array of recurring start dates:<\/p>\n<pre><code>echo '&lt;pre&gt;';\r\nprint_r(tribe_get_recurrence_start_dates());\t\r\necho '&lt;\/pre&gt;';<\/code><\/pre>\n<p>The code outputs the following array:<\/p>\n<p>Array<br \/>\n(<br \/>\n[0] =&gt; 2016-08-19 19:00:00<br \/>\n[1] =&gt; 2016-08-19 19:00:00<br \/>\n[2] =&gt; 2016-08-20 17:00:00<br \/>\n[3] =&gt; 2016-08-20 21:00:00<br \/>\n[4] =&gt; 2016-08-21 17:00:00<br \/>\n)<\/p>\n<p>The below array is what I expected to get:<\/p>\n<p>Array<br \/>\n(<br \/>\n[0] =&gt; 2016-08-19 19:00:00<br \/>\n[1] =&gt; 2016-08-20 21:00:00<br \/>\n[2] =&gt; 2016-08-21 17:00:00<br \/>\n)<\/p>\n<p>Please let me know what I&#8217;m doing wrong.<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1155172","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>&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -<\/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\/tribe_get_recurrence_start_dates-not-working-as-expected\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -\" \/>\n<meta property=\"og:description\" content=\"Hi there. Trying to get all recurring start dates using &#8220;tribe_get_recurrence_start_dates&#8221; function, however it appears to not be working properly&#8230;or I am just messing something up. See the attached image for how the recurrences are set up for this particular event. In single-event.php (theme override), I&#8217;m using the following code to output an array of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-07T20:46:57+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\/tribe_get_recurrence_start_dates-not-working-as-expected\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/\",\"name\":\"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-08-24T02:45:42+00:00\",\"dateModified\":\"2016-09-07T20:46:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/#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\":\"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected\"}]},{\"@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":"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -","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\/tribe_get_recurrence_start_dates-not-working-as-expected\/","og_locale":"en_US","og_type":"article","og_title":"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -","og_description":"Hi there. Trying to get all recurring start dates using &#8220;tribe_get_recurrence_start_dates&#8221; function, however it appears to not be working properly&#8230;or I am just messing something up. See the attached image for how the recurrences are set up for this particular event. In single-event.php (theme override), I&#8217;m using the following code to output an array of [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/","article_modified_time":"2016-09-07T20:46:57+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\/tribe_get_recurrence_start_dates-not-working-as-expected\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/","name":"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-08-24T02:45:42+00:00","dateModified":"2016-09-07T20:46:57+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates-not-working-as-expected\/#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":"&quot;tribe_get_recurrence_start_dates&quot; Not working as Expected"}]},{"@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\/1155172","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\/1155172\/revisions"}],"predecessor-version":[{"id":1188729,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1155172\/revisions\/1188729"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1155172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}