{"id":1537683,"date":"2018-05-23T23:21:59","date_gmt":"2018-05-24T06:21:59","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/"},"modified":"2018-05-23T23:21:59","modified_gmt":"2018-05-24T06:21:59","slug":"relate-events-to-existing-venues","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/","title":{"rendered":"Relate events to existing venues"},"content":{"rendered":"<p>Morning from sunny Barcelona<\/p>\n<p>We have a client for whom we are coding a directory of &#8220;Gyms&#8221; &#8211; worldwide listings at +100K<\/p>\n<p>Each gym can have a number of staffers (teachers) which are linked to the gym, but also available as a custom CPT (so that gym teachers can sign up independantly, link to the gym\/gyms they work at, but retain their own listing identity (for free lance teachers for example, or for events they hold outside of the gym privately).<\/p>\n<p>Our data structure<br \/>\n&#8211; Spots (or Places) are locations (f.ex a gym with multiple locations) and is linked to a particular gym \/ teacher or user (subscriber)<br \/>\n&#8211; Teacher is geolocated and linked to gym(s) where they work at (think part-time teachers)<br \/>\n&#8211; Gym is geolocated and has child links to spots and teachers<\/p>\n<p>So here is the tricky part. Classes \/ Events<\/p>\n<p>Events:<br \/>\nWe need to link the events to a location or venue. But we don\u00b4t want to duplicate venues but insted limit the selection to<br \/>\na) existing gym or spot listings (select from), which we already have in place.<br \/>\nb) give community members the option of adding their own locations (this is for the case of user events).<\/p>\n<p>Classes<br \/>\nSame here<\/p>\n<p>And, now comes the fun part, we need to be able to display these on a map&#8230;<\/p>\n<p>Is this possible?<\/p>\n","protected":false},"template":"","class_list":["post-1537683","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>Relate events to existing venues -<\/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\/relate-events-to-existing-venues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Relate events to existing venues -\" \/>\n<meta property=\"og:description\" content=\"Morning from sunny Barcelona We have a client for whom we are coding a directory of &#8220;Gyms&#8221; &#8211; worldwide listings at +100K Each gym can have a number of staffers (teachers) which are linked to the gym, but also available as a custom CPT (so that gym teachers can sign up independantly, link to the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/\" \/>\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\/relate-events-to-existing-venues\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/\",\"name\":\"Relate events to existing venues -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-05-24T06:21:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/#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\":\"Relate events to existing venues\"}]},{\"@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":"Relate events to existing venues -","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\/relate-events-to-existing-venues\/","og_locale":"en_US","og_type":"article","og_title":"Relate events to existing venues -","og_description":"Morning from sunny Barcelona We have a client for whom we are coding a directory of &#8220;Gyms&#8221; &#8211; worldwide listings at +100K Each gym can have a number of staffers (teachers) which are linked to the gym, but also available as a custom CPT (so that gym teachers can sign up independantly, link to the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/","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\/relate-events-to-existing-venues\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/","name":"Relate events to existing venues -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-05-24T06:21:59+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/relate-events-to-existing-venues\/#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":"Relate events to existing venues"}]},{"@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\/1537683","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\/1537683\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1537683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}