{"id":1583581,"date":"2018-07-25T14:35:55","date_gmt":"2018-07-25T21:35:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/"},"modified":"2018-07-25T14:35:55","modified_gmt":"2018-07-25T21:35:55","slug":"get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/","title":{"rendered":"Get wrong event URL from tribe_get_event_meta or get_permalink"},"content":{"rendered":"<p>Hi!<\/p>\n<p>I needed to style the month page, so I wrote an additional code that displays events page under the calendar. However, when I click the event URL, I get a nonexistent page:<\/p>\n<p>https:\/\/www.beinfinitenow.com\/events\/<\/p>\n<p>The URL comes from get_permalink function. I tried using<\/p>\n<p> tribe_get_event_meta( get_the_ID(), \u2018_EventURL\u2019, true )<\/p>\n<p>but it returns event ID, not event URL, which is what I would expect. <\/p>\n<p>I also noticed that get_permalink function returns events in this format: https:\/\/www.beinfinitenow.com\/full-blood-moon-guided-meditation-48348935969\/<\/p>\n<p>and when I list events using Eventbrite events page template on this page: https:\/\/www.beinfinitenow.com\/classes-and-events\/ &#8211; when I click on events, they follow this format &#8211; https:\/\/www.beinfinitenow.com\/classes-and-events\/full-blood-moon-guided-meditation-48348935969\/ The difference is in page name between the site URL and the event.<\/p>\n<p>And when I edit the same event in WordPress admin panel, its URL is https:\/\/www.beinfinitenow.com\/event\/full-blood-moon-guided-meditation\/ &#8211; &#8220;event&#8221; after website URL instead of &#8220;classes-and-events&#8221;.<\/p>\n<p>All of the above makes me wonder if I&#8217;ve done something wrong in the setup. But the least I need to find out is how to obtain the correct event URL.<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1583581","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 wrong event URL from tribe_get_event_meta or get_permalink -<\/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-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get wrong event URL from tribe_get_event_meta or get_permalink -\" \/>\n<meta property=\"og:description\" content=\"Hi! I needed to style the month page, so I wrote an additional code that displays events page under the calendar. However, when I click the event URL, I get a nonexistent page: https:\/\/www.beinfinitenow.com\/events\/ The URL comes from get_permalink function. I tried using tribe_get_event_meta( get_the_ID(), \u2018_EventURL\u2019, true ) but it returns event ID, not event [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/\" \/>\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-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/\",\"name\":\"Get wrong event URL from tribe_get_event_meta or get_permalink -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-07-25T21:35:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/#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\":\"Eventbrite Tickets\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/eventbrite-tickets\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Get wrong event URL from tribe_get_event_meta or get_permalink\"}]},{\"@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 wrong event URL from tribe_get_event_meta or get_permalink -","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-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/","og_locale":"en_US","og_type":"article","og_title":"Get wrong event URL from tribe_get_event_meta or get_permalink -","og_description":"Hi! I needed to style the month page, so I wrote an additional code that displays events page under the calendar. However, when I click the event URL, I get a nonexistent page: https:\/\/www.beinfinitenow.com\/events\/ The URL comes from get_permalink function. I tried using tribe_get_event_meta( get_the_ID(), \u2018_EventURL\u2019, true ) but it returns event ID, not event [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/","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-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/","name":"Get wrong event URL from tribe_get_event_meta or get_permalink -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-07-25T21:35:55+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-wrong-event-url-from-tribe_get_event_meta-or-get_permalink\/#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":"Eventbrite Tickets","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/eventbrite-tickets\/"},{"@type":"ListItem","position":5,"name":"Get wrong event URL from tribe_get_event_meta or get_permalink"}]},{"@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\/1583581","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\/1583581\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1583581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}