{"id":30260,"date":"2013-01-03T09:43:13","date_gmt":"2013-01-03T17:43:13","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/custom-field-as-the-event-link\/"},"modified":"2015-07-07T06:26:23","modified_gmt":"2015-07-07T13:26:23","slug":"custom-field-as-the-event-link","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/","title":{"rendered":"Custom field as the event link"},"content":{"rendered":"<p>Hi. I am trying to create a single multi-day (non-consecutive days) event. It would be perfect if the plugin could exclude some dates from the pattern but, at least for now, can\u2019t be done with recurring dates&#8230; <\/p>\n<p>But because it is quite urgent to me to get it done, I am trying to get the same result taking a different approach.<\/p>\n<p>Here is my scenario. It&#8217;s a five day training course with non-consecutive days. A single event from 2013-01-14 to 2013-01-23, but training days are only the 14th, 16th, 18th, 21st and 23rd. So I want it to show in my calendar just these five days instead of all ten days. As I said, recurring dates doesn&#8217;t do the job, because it treats each day as a different event and that\u2019s not what I want, so here is my idea and what it would work for me:<\/p>\n<p>I set manually every single day as a separate single event, all 5 with the same title and descriptions.<\/p>\n<p>The first day (the 14th) is used as a reference because it will contain the register form for the training course. So in the calendar views I will need the rest of the days to point to this first day.<\/p>\n<p>My approach would be creating a Custom Field called i.e. \u2018Reference Link\u2019 and filling it up with the first day\u2019s permalink.<\/p>\n<p>Then go for example to table-mini.php template and make an IF statement such as:<\/p>\n<p>\u201cIf custom field \u2018Reference Link\u2019 exists and is not empty, use it as the event link. ELSE use the tribe_get_event_link() function\u201d<\/p>\n<p>I hope that makes sense&#8230; I am not a PHP expert so I am having a hard time trying to figure it out :\/<\/p>\n<p>I would appreciate very much your help. thanks.<\/p>\n","protected":false},"template":"","class_list":["post-30260","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>Custom field as the event link -<\/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\/custom-field-as-the-event-link\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom field as the event link -\" \/>\n<meta property=\"og:description\" content=\"Hi. I am trying to create a single multi-day (non-consecutive days) event. It would be perfect if the plugin could exclude some dates from the pattern but, at least for now, can\u2019t be done with recurring dates&#8230; But because it is quite urgent to me to get it done, I am trying to get the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:26:23+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\/custom-field-as-the-event-link\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/\",\"name\":\"Custom field as the event link -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-01-03T17:43:13+00:00\",\"dateModified\":\"2015-07-07T13:26:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/#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\":\"Custom field as the event link\"}]},{\"@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":"Custom field as the event link -","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\/custom-field-as-the-event-link\/","og_locale":"en_US","og_type":"article","og_title":"Custom field as the event link -","og_description":"Hi. I am trying to create a single multi-day (non-consecutive days) event. It would be perfect if the plugin could exclude some dates from the pattern but, at least for now, can\u2019t be done with recurring dates&#8230; But because it is quite urgent to me to get it done, I am trying to get the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/","article_modified_time":"2015-07-07T13:26:23+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\/custom-field-as-the-event-link\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/","name":"Custom field as the event link -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-01-03T17:43:13+00:00","dateModified":"2015-07-07T13:26:23+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-field-as-the-event-link\/#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":"Custom field as the event link"}]},{"@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\/30260","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\/30260\/revisions"}],"predecessor-version":[{"id":978376,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/30260\/revisions\/978376"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=30260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}