{"id":911273,"date":"2014-12-07T22:15:59","date_gmt":"2014-12-08T06:15:59","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/get-ticket-data-by-event-id\/"},"modified":"2014-12-10T15:28:04","modified_gmt":"2014-12-10T23:28:04","slug":"get-ticket-data-by-event-id","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/","title":{"rendered":"Get Ticket Data by Event ID"},"content":{"rendered":"<p>Hi Tribe,<\/p>\n<p>Sorry if this has been covered elsewhere. I truly have tried to find articles both in this support forum and elsewhere that cover this seemingly very basic thing, and I am not finding anything. The situation\/question is:<\/p>\n<p>Let&#8217;s say I&#8217;m viewing an event, and that event has an ID of 80. And for that event, I have a couple of tickets attached to it, one which is an &#8220;Adult Price&#8221; ticket, and one that is a &#8220;Child&#8217;s Price&#8221; ticket. The question is: How do I get the ticket data that is attached to an event ID? A couple of many examples of how this could be useful are: having a nice banner at the top that says &#8220;Children only $10&#8221; (where the &#8220;$10&#8221; would be pulled from the ticket data). Or, another example: my own custom buttons elsewhere to create an add-to-cart-and-proceed-to-cart-view link, where the link is constructed using the ticket ID that is pulled from the ticket data.<\/p>\n<p>For the life of me this super simple thing is causing me to pull out my hair.<\/p>\n<p>Thanks in advance for your help,<\/p>\n<p>-M<\/p>\n","protected":false},"template":"","class_list":["post-911273","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 Ticket Data by Event ID -<\/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-ticket-data-by-event-id\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get Ticket Data by Event ID -\" \/>\n<meta property=\"og:description\" content=\"Hi Tribe, Sorry if this has been covered elsewhere. I truly have tried to find articles both in this support forum and elsewhere that cover this seemingly very basic thing, and I am not finding anything. The situation\/question is: Let&#8217;s say I&#8217;m viewing an event, and that event has an ID of 80. And for [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-10T23:28:04+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\/get-ticket-data-by-event-id\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/\",\"name\":\"Get Ticket Data by Event ID -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-12-08T06:15:59+00:00\",\"dateModified\":\"2014-12-10T23:28:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/#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\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Get Ticket Data by Event ID\"}]},{\"@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 Ticket Data by Event ID -","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-ticket-data-by-event-id\/","og_locale":"en_US","og_type":"article","og_title":"Get Ticket Data by Event ID -","og_description":"Hi Tribe, Sorry if this has been covered elsewhere. I truly have tried to find articles both in this support forum and elsewhere that cover this seemingly very basic thing, and I am not finding anything. The situation\/question is: Let&#8217;s say I&#8217;m viewing an event, and that event has an ID of 80. And for [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/","article_modified_time":"2014-12-10T23:28:04+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\/get-ticket-data-by-event-id\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/","name":"Get Ticket Data by Event ID -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-12-08T06:15:59+00:00","dateModified":"2014-12-10T23:28:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-ticket-data-by-event-id\/#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":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Get Ticket Data by Event ID"}]},{"@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\/911273","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\/911273\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=911273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}