{"id":938943,"date":"2015-01-29T21:25:48","date_gmt":"2015-01-30T05:25:48","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/"},"modified":"2015-07-07T06:31:15","modified_gmt":"2015-07-07T13:31:15","slug":"show-all-occurrences-by-event-id","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/","title":{"rendered":"Show all occurrences by event id"},"content":{"rendered":"<p>Hello.<br \/>\nUsers register for a recurring event. I&#8217;m storing the ID of that event as user meta. On their &#8216;My Account&#8217; page that we built, we want to show them all the dates that their event is on (ie each occurrence).<\/p>\n<p>I dug through the pastebins here: https:\/\/theeventscalendar.com\/support\/forums\/topic\/customize-output-of-recurring-events-list-titledesc-once-all-dates-under-that\/ but got a little lost.<\/p>\n<p>For ease of use, we are wrapping this in a custom shortcode [my_schedule]. This gives us the ID of the event in the recurrence:<\/p>\n<pre><code>global $current_user;\nget_currentuserinfo();\n$userid = $current_user-&gt;ID;\n$eventid = get_field(&#039;101_event_id&#039;, $userid);<\/code><\/pre>\n<p>How do we display the future dates of each occurrence?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-938943","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>Show all occurrences 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\/show-all-occurrences-by-event-id\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Show all occurrences by event id -\" \/>\n<meta property=\"og:description\" content=\"Hello. Users register for a recurring event. I&#8217;m storing the ID of that event as user meta. On their &#8216;My Account&#8217; page that we built, we want to show them all the dates that their event is on (ie each occurrence). I dug through the pastebins here: https:\/\/theeventscalendar.com\/support\/forums\/topic\/customize-output-of-recurring-events-list-titledesc-once-all-dates-under-that\/ but got a little lost. For ease [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:31:15+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\/show-all-occurrences-by-event-id\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/\",\"name\":\"Show all occurrences by event id -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-01-30T05:25:48+00:00\",\"dateModified\":\"2015-07-07T13:31:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-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\":\"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\":\"Show all occurrences 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":"Show all occurrences 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\/show-all-occurrences-by-event-id\/","og_locale":"en_US","og_type":"article","og_title":"Show all occurrences by event id -","og_description":"Hello. Users register for a recurring event. I&#8217;m storing the ID of that event as user meta. On their &#8216;My Account&#8217; page that we built, we want to show them all the dates that their event is on (ie each occurrence). I dug through the pastebins here: https:\/\/theeventscalendar.com\/support\/forums\/topic\/customize-output-of-recurring-events-list-titledesc-once-all-dates-under-that\/ but got a little lost. For ease [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/","article_modified_time":"2015-07-07T13:31:15+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\/show-all-occurrences-by-event-id\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/","name":"Show all occurrences by event id -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-01-30T05:25:48+00:00","dateModified":"2015-07-07T13:31:15+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-by-event-id\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/show-all-occurrences-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":"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":"Show all occurrences 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\/938943","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\/938943\/revisions"}],"predecessor-version":[{"id":939002,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/938943\/revisions\/939002"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=938943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}