{"id":1120768,"date":"2016-05-31T11:07:47","date_gmt":"2016-05-31T18:07:47","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/"},"modified":"2016-05-31T11:07:47","modified_gmt":"2016-05-31T18:07:47","slug":"get-list-of-recurring-events-into-single-events-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/","title":{"rendered":"Get list of recurring events (into single-events.php)"},"content":{"rendered":"<p>Hi there,<br \/>\nI&#8217;m using the recurrence feature from The Event Calendar Pro. I need to know, how to get a list (ordered by date) of <strong>all<\/strong> recurring events of <strong>one<\/strong> event\/post. <\/p>\n<p>The event has some dates like:<br \/>\n10.9. | Mon. |  1:00pm<br \/>\n11.9. | Tue. |  1:00pm<br \/>\n12.9. | Wed. |  1:00pm<\/p>\n<p>I&#8217;ve found a way, to get displayed a list of 3 related post by using the &#8220;tribe_get_related_posts();&#8221;.<br \/>\nBut in this case,  I only get max. 3 random events without any order.<\/p>\n<p>Thanks!<\/p>\n<p><code><br \/>\n&lt;?php<br \/>\n$posts = tribe_get_related_posts();<br \/>\nif ( is_array( $posts ) &amp;&amp; ! empty( $posts ) ) : ?&gt;<\/p>\n<ul>\n&lt;?php foreach ( $posts as $post ) : ?&gt;<\/p>\n<li>\n<a>\" class=\"tribe-event-url\" rel=\"bookmark\"&gt;<br \/>\n&lt;?php echo tribe_get_start_date($post-&gt;ID, false, j); ?&gt;.&lt;?php echo tribe_get_start_date($post-&gt;ID, false,m); ?&gt;.&lt;?php echo tribe_get_start_date($post-&gt;ID, false,y); ?&gt;  | &lt;?php echo tribe_get_start_date($post-&gt;ID, false, D); ?&gt;. | &lt;?php echo tribe_get_start_date($post-&gt;ID, false, 'H:i'); ?&gt; o'clock<br \/>\n<\/a>\n<\/li>\n<p>&lt;?php endforeach; ?&gt;\n<\/ul>\n<p>&lt;?php endif; ?&gt;<\/code><\/p>\n","protected":false},"template":"","class_list":["post-1120768","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>Get list of recurring events (into single-events.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\/get-list-of-recurring-events-into-single-events-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get list of recurring events (into single-events.php) -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;m using the recurrence feature from The Event Calendar Pro. I need to know, how to get a list (ordered by date) of all recurring events of one event\/post. The event has some dates like: 10.9. | Mon. | 1:00pm 11.9. | Tue. | 1:00pm 12.9. | Wed. | 1:00pm I&#8217;ve found a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-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\/get-list-of-recurring-events-into-single-events-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/\",\"name\":\"Get list of recurring events (into single-events.php) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-31T18:07:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-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\":\"Get list of recurring events (into single-events.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":"Get list of recurring events (into single-events.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\/get-list-of-recurring-events-into-single-events-php\/","og_locale":"en_US","og_type":"article","og_title":"Get list of recurring events (into single-events.php) -","og_description":"Hi there, I&#8217;m using the recurrence feature from The Event Calendar Pro. I need to know, how to get a list (ordered by date) of all recurring events of one event\/post. The event has some dates like: 10.9. | Mon. | 1:00pm 11.9. | Tue. | 1:00pm 12.9. | Wed. | 1:00pm I&#8217;ve found a [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-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\/get-list-of-recurring-events-into-single-events-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/","name":"Get list of recurring events (into single-events.php) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-31T18:07:47+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-list-of-recurring-events-into-single-events-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":"Get list of recurring events (into single-events.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\/1120768","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\/1120768\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1120768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}