{"id":1339577,"date":"2017-08-24T01:56:26","date_gmt":"2017-08-24T08:56:26","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/"},"modified":"2017-08-24T01:56:26","modified_gmt":"2017-08-24T08:56:26","slug":"tribe_get_recurrence_start_dates","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/","title":{"rendered":"tribe_get_recurrence_start_dates"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I am using tribe_get_recurrence_start_dates to list recurring dates on a single event page.<\/p>\n<p><code><br \/>\nif (tribe_is_recurring_event()) {<br \/>\n    $recurring_dates = [];<br \/>\n    foreach (tribe_get_recurrence_start_dates() as $recurring_date) {<br \/>\n        $recurring_dates[] = $recurring_date;<br \/>\n    }<br \/>\n    array_shift($recurring_dates);<br \/>\n};<br \/>\n<\/code><br \/>\nand then<br \/>\n<code><br \/>\n&lt;?php if (isset($recurring_dates)) : ?&gt;<br \/>\n    &lt;div class=\"recurring-dates\"&gt;<br \/>\n        &lt;span class=\"header\"&gt;FLER DATUM&lt;\/span&gt;<br \/>\n        &lt;?php<br \/>\n        foreach ($recurring_dates as $date) {<br \/>\n            echo '&lt;i class=\"fa fa-calendar\" aria-hidden=\"true\"&gt;&lt;\/i&gt;&lt;span class=\"date-label\"&gt;' . get_event_formatted_date($date) . '&lt;\/span&gt;&lt;br&gt;';<br \/>\n        }<br \/>\n        ?&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n&lt;?php endif; ?&gt;<br \/>\n<\/code><\/p>\n<p>It&#8217;s working nice but I want the possible to link each date to it&#8217;s related event page.<br \/>\nIt there a way to get the post_id&#8217;s or similar for recurruring events so I can create a link.<br \/>\nLet&#8217;s say for a example tribe_get_recurrence_post_ids() method or similar. <\/p>\n","protected":false},"template":"","class_list":["post-1339577","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>tribe_get_recurrence_start_dates -<\/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\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_get_recurrence_start_dates -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am using tribe_get_recurrence_start_dates to list recurring dates on a single event page. if (tribe_is_recurring_event()) { $recurring_dates = []; foreach (tribe_get_recurrence_start_dates() as $recurring_date) { $recurring_dates[] = $recurring_date; } array_shift($recurring_dates); }; and then &lt;?php if (isset($recurring_dates)) : ?&gt; &lt;div class=&quot;recurring-dates&quot;&gt; &lt;span class=&quot;header&quot;&gt;FLER DATUM&lt;\/span&gt; &lt;?php foreach ($recurring_dates as $date) { echo &#039;&lt;i class=&quot;fa fa-calendar&quot; aria-hidden=&quot;true&quot;&gt;&lt;\/i&gt;&lt;span class=&quot;date-label&quot;&gt;&#039; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/\" \/>\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\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/\",\"name\":\"tribe_get_recurrence_start_dates -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-08-24T08:56:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/#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\":\"tribe_get_recurrence_start_dates\"}]},{\"@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":"tribe_get_recurrence_start_dates -","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\/","og_locale":"en_US","og_type":"article","og_title":"tribe_get_recurrence_start_dates -","og_description":"Hi, I am using tribe_get_recurrence_start_dates to list recurring dates on a single event page. if (tribe_is_recurring_event()) { $recurring_dates = []; foreach (tribe_get_recurrence_start_dates() as $recurring_date) { $recurring_dates[] = $recurring_date; } array_shift($recurring_dates); }; and then &lt;?php if (isset($recurring_dates)) : ?&gt; &lt;div class=\"recurring-dates\"&gt; &lt;span class=\"header\"&gt;FLER DATUM&lt;\/span&gt; &lt;?php foreach ($recurring_dates as $date) { echo '&lt;i class=\"fa fa-calendar\" aria-hidden=\"true\"&gt;&lt;\/i&gt;&lt;span class=\"date-label\"&gt;' [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/","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\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/","name":"tribe_get_recurrence_start_dates -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-08-24T08:56:26+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_get_recurrence_start_dates\/#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":"tribe_get_recurrence_start_dates"}]},{"@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\/1339577","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\/1339577\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1339577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}