{"id":1595497,"date":"2018-08-11T15:24:24","date_gmt":"2018-08-11T22:24:24","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/"},"modified":"2018-08-11T15:24:24","modified_gmt":"2018-08-11T22:24:24","slug":"event-tickets-function-to-get-array-of-open-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/","title":{"rendered":"Event Tickets: Function to get array of open events"},"content":{"rendered":"<p>Hi,<br \/>\nIs there a Tribe php function to get an array of all RSVP-able events (of the designated post type), so i can loop through them?<\/p>\n<p>my client has a site with a large number of event listings, some have RSVP and some don&#8217;t.  They would like people to be able to rsvp to any event from an RSVP page, in addition to being able to rsvp on the single event page. To do that I would build them a tabbed interface where they can select the event by title, and the RSVP form for that event would be shown on the page. <\/p>\n<p>Obviously i would build this myself, but i would need a way to query all events that *have* RSVP.<\/p>\n<p>i would also need a function to render the form for the event, by ID.<\/p>\n<p>Thanks, and i&#8217;m very willing to pay for pro support, but this seems to be a function that would exist in the basic plugin?<\/p>\n","protected":false},"template":"","class_list":["post-1595497","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>Event Tickets: Function to get array of open events -<\/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\/event-tickets-function-to-get-array-of-open-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Event Tickets: Function to get array of open events -\" \/>\n<meta property=\"og:description\" content=\"Hi, Is there a Tribe php function to get an array of all RSVP-able events (of the designated post type), so i can loop through them? my client has a site with a large number of event listings, some have RSVP and some don&#8217;t. They would like people to be able to rsvp to any [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/\" \/>\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\/event-tickets-function-to-get-array-of-open-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/\",\"name\":\"Event Tickets: Function to get array of open events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-08-11T22:24:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/#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\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Event Tickets: Function to get array of open events\"}]},{\"@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":"Event Tickets: Function to get array of open events -","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\/event-tickets-function-to-get-array-of-open-events\/","og_locale":"en_US","og_type":"article","og_title":"Event Tickets: Function to get array of open events -","og_description":"Hi, Is there a Tribe php function to get an array of all RSVP-able events (of the designated post type), so i can loop through them? my client has a site with a large number of event listings, some have RSVP and some don&#8217;t. They would like people to be able to rsvp to any [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/","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\/event-tickets-function-to-get-array-of-open-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/","name":"Event Tickets: Function to get array of open events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-08-11T22:24:24+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-function-to-get-array-of-open-events\/#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":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Event Tickets: Function to get array of open events"}]},{"@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\/1595497","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\/1595497\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1595497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}