{"id":1050063,"date":"2016-01-04T14:18:08","date_gmt":"2016-01-04T22:18:08","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/"},"modified":"2016-01-05T22:54:09","modified_gmt":"2016-01-06T06:54:09","slug":"recurring-events-in-a-custom-query","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/","title":{"rendered":"Recurring events in a custom query?"},"content":{"rendered":"<p>I&#8217;ve been searching through the forms and can&#8217;t seem to find a clear answer to this.<\/p>\n<p>On my site, I&#8217;m doing a custom query and then dumping the contents using:<\/p>\n<p><code><br \/>\n$monthlyevents = tribe_get_events( array(<br \/>\n\t\t'eventDisplay' =&gt; 'custom',<br \/>\n\t\t'start_date' =&gt; '2016-02-01 00:00',<br \/>\n\t\t'end_date'   =&gt; '2016-02-29 23:59'<br \/>\n\t));<\/p>\n<p>var_dump($monthlyevents);<br \/>\n<\/code><\/p>\n<p>This returns an array of events from February of this year. In the var_dump, I only see one instance of a recurring event with a start date (ex: 2\/2\/16) and end date (ex: 2\/26\/16) . This would be okay, but in the array I don&#8217;t see any way to figure out the recurrence pattern either. Is there something I&#8217;m overlooking?<\/p>\n<p>Here is an example of the event data for one recurring event in the array:<br \/>\n<code><br \/>\n[3]=&gt;<br \/>\n  object(WP_Post)#446 (26) {<br \/>\n    [\"ID\"]=&gt;<br \/>\n    int(18143)<br \/>\n    [\"post_author\"]=&gt;<br \/>\n    string(2) \"45\"<br \/>\n    [\"post_date\"]=&gt;<br \/>\n    string(19) \"2015-12-07 15:59:30\"<br \/>\n    [\"post_date_gmt\"]=&gt;<br \/>\n    string(19) \"2015-12-07 20:59:30\"<br \/>\n    [\"post_content\"]=&gt;<br \/>\n    string(569) \"Babies at the Barre\u2122 is a \u201cMommy and me\u201d style exercise class, designed to be done while baby is in a carrier, for new parents and their babies. Babies at the Barre\u2122 is a mix of basic ballet and pilates exercises completed at the ballet barre and on the floor. Exercises focus on rebuilding strength in the pelvic floor as well as increasing flexibility and toning arms, core, calves, and buns, all while bonding with baby. No prior dance or pilates experience is required to participate in class.<br \/>\nAdvanced registration is required-use registration code #18790\"<br \/>\n    [\"post_title\"]=&gt;<br \/>\n    string(22) \"Babies at the Barre\u2122\"<br \/>\n    [\"post_excerpt\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"post_status\"]=&gt;<br \/>\n    string(7) \"publish\"<br \/>\n    [\"comment_status\"]=&gt;<br \/>\n    string(6) \"closed\"<br \/>\n    [\"ping_status\"]=&gt;<br \/>\n    string(6) \"closed\"<br \/>\n    [\"post_password\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"post_name\"]=&gt;<br \/>\n    string(21) \"babies-at-the-barre-3\"<br \/>\n    [\"to_ping\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"pinged\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"post_modified\"]=&gt;<br \/>\n    string(19) \"2015-12-07 15:59:30\"<br \/>\n    [\"post_modified_gmt\"]=&gt;<br \/>\n    string(19) \"2015-12-07 20:59:30\"<br \/>\n    [\"post_content_filtered\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"post_parent\"]=&gt;<br \/>\n    int(0)<br \/>\n    [\"guid\"]=&gt;<br \/>\n    string(33) \"http:\/\/www.centralpennparent.com\/\"<br \/>\n    [\"menu_order\"]=&gt;<br \/>\n    int(0)<br \/>\n    [\"post_type\"]=&gt;<br \/>\n    string(12) \"tribe_events\"<br \/>\n    [\"post_mime_type\"]=&gt;<br \/>\n    string(0) \"\"<br \/>\n    [\"comment_count\"]=&gt;<br \/>\n    string(1) \"0\"<br \/>\n    [\"filter\"]=&gt;<br \/>\n    string(3) \"raw\"<br \/>\n    [\"EventStartDate\"]=&gt;<br \/>\n    string(19) \"2016-01-11 16:30:00\"<br \/>\n    [\"EventEndDate\"]=&gt;<br \/>\n    string(19) \"2016-02-15 17:30:00\"<br \/>\n  }<br \/>\n<\/code><\/p>\n","protected":false},"template":"","class_list":["post-1050063","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 events in a custom query? -<\/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-events-in-a-custom-query\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recurring events in a custom query? -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been searching through the forms and can&#8217;t seem to find a clear answer to this. On my site, I&#8217;m doing a custom query and then dumping the contents using: $monthlyevents = tribe_get_events( array( &#039;eventDisplay&#039; =&gt; &#039;custom&#039;, &#039;start_date&#039; =&gt; &#039;2016-02-01 00:00&#039;, &#039;end_date&#039; =&gt; &#039;2016-02-29 23:59&#039; )); var_dump($monthlyevents); This returns an array of events from February [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-01-06T06:54:09+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=\"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\/recurring-events-in-a-custom-query\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/\",\"name\":\"Recurring events in a custom query? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-04T22:18:08+00:00\",\"dateModified\":\"2016-01-06T06:54:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/#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 events in a custom query?\"}]},{\"@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 events in a custom query? -","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-events-in-a-custom-query\/","og_locale":"en_US","og_type":"article","og_title":"Recurring events in a custom query? -","og_description":"I&#8217;ve been searching through the forms and can&#8217;t seem to find a clear answer to this. On my site, I&#8217;m doing a custom query and then dumping the contents using: $monthlyevents = tribe_get_events( array( 'eventDisplay' =&gt; 'custom', 'start_date' =&gt; '2016-02-01 00:00', 'end_date' =&gt; '2016-02-29 23:59' )); var_dump($monthlyevents); This returns an array of events from February [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/","article_modified_time":"2016-01-06T06:54:09+00:00","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\/recurring-events-in-a-custom-query\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/","name":"Recurring events in a custom query? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-04T22:18:08+00:00","dateModified":"2016-01-06T06:54:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/recurring-events-in-a-custom-query\/#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 events in a custom query?"}]},{"@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\/1050063","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1050063\/revisions"}],"predecessor-version":[{"id":1050670,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1050063\/revisions\/1050670"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1050063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}