{"id":213644,"date":"2014-06-08T17:05:23","date_gmt":"2014-06-09T00:05:23","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/grabbing-the-tribe-event-url\/"},"modified":"2015-07-07T06:30:52","modified_gmt":"2015-07-07T13:30:52","slug":"grabbing-the-tribe-event-url","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/","title":{"rendered":"Grabbing the tribe event URL"},"content":{"rendered":"<p>I&#8217;ve been looking over how to pull in the tribe event website url from what I came across this should work:<\/p>\n<p>tribe_get_event_meta( $post, &#8216;_EventURL&#8217;, true );<\/p>\n<p>But for some reason I can not pull it in like that at all. I would like to link the event title to the Event website link<\/p>\n<p>Heres what I&#8217;ve been trying:<\/p>\n<p>&lt;?php<br \/>\nglobal $post;<br \/>\n$all_events = tribe_get_events(array(<br \/>\n&#8216;eventDisplay&#8217;=&gt;&#8217;all&#8217;,<br \/>\n&#8216;posts_per_page&#8217;=&gt;-3<br \/>\n));<\/p>\n<p>foreach($all_events as $post) {<br \/>\nsetup_postdata($post);<br \/>\n$url = tribe_get_event_meta( $post, &#8216;_EventURL&#8217;, true );<br \/>\n?&gt;<br \/>\n&lt;div class=&#8221;c4&#8243; id=&#8221;product&#8221;&gt;<br \/>\n&lt;div class=&#8221;artist_date&#8221;&gt; &lt;?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?&gt;<br \/>\n    &lt;?php echo tribe_get_start_date( $post, false, &#8216; j M&#8217; ); ?&gt; &#8211; &lt;?php echo tribe_get_end_date( $post, false, &#8216; j M&#8217; ); ?&gt;<br \/>\n  &lt;?php } else { ?&gt;<br \/>\n    &lt;?php echo tribe_get_start_date( $post, false, &#8216;j M&#8217; ); ?&gt;<br \/>\n  &lt;?php } ?&gt;&lt;\/div&gt;<br \/>\n  &lt;?php echo tribe_meta_event_category_name(); ?&gt;<\/p>\n<p>&lt;div class=&#8221;blog-title-home&#8221;&gt;<a href='$url'>&lt;?php the_title(); ?&gt;<\/a>&lt;\/div&gt;<br \/>\n&lt;?php the_excerpt(); ?&gt;<\/p>\n<p>&lt;?php echo tribe_get_city() ?&gt;<br \/>\n&lt;?php echo tribe_get_region() ?&gt;<br \/>\n&lt;?php echo tribe_get_country() ?&gt;<\/p>\n<p>&lt;\/div&gt;<br \/>\n&lt;?php } ?&gt;<br \/>\n&lt;?php wp_reset_query(); ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-213644","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>Grabbing the tribe event URL -<\/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\/grabbing-the-tribe-event-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Grabbing the tribe event URL -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been looking over how to pull in the tribe event website url from what I came across this should work: tribe_get_event_meta( $post, &#8216;_EventURL&#8217;, true ); But for some reason I can not pull it in like that at all. I would like to link the event title to the Event website link Heres what [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:30:52+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\/grabbing-the-tribe-event-url\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/\",\"name\":\"Grabbing the tribe event URL -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-06-09T00:05:23+00:00\",\"dateModified\":\"2015-07-07T13:30:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/#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\":\"Grabbing the tribe event URL\"}]},{\"@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":"Grabbing the tribe event URL -","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\/grabbing-the-tribe-event-url\/","og_locale":"en_US","og_type":"article","og_title":"Grabbing the tribe event URL -","og_description":"I&#8217;ve been looking over how to pull in the tribe event website url from what I came across this should work: tribe_get_event_meta( $post, &#8216;_EventURL&#8217;, true ); But for some reason I can not pull it in like that at all. I would like to link the event title to the Event website link Heres what [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/","article_modified_time":"2015-07-07T13:30:52+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\/grabbing-the-tribe-event-url\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/","name":"Grabbing the tribe event URL -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-06-09T00:05:23+00:00","dateModified":"2015-07-07T13:30:52+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/grabbing-the-tribe-event-url\/#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":"Grabbing the tribe event URL"}]},{"@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\/213644","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\/213644\/revisions"}],"predecessor-version":[{"id":983309,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/213644\/revisions\/983309"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=213644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}