{"id":6780080,"date":"2015-11-23T21:10:23","date_gmt":"2015-11-23T21:10:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/get_permalink-1\/"},"modified":"2016-08-30T20:35:47","modified_gmt":"2016-08-30T20:35:47","slug":"get_permalink-1","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/get_permalink-1\/","title":{"rendered":"get_permalink"},"content":{"rendered":"<p>I&#8217;m creating a widget that uses Eventbrite_Query to list upcoming events, but the function the_permalink, when called by this query, is returning URLs based on the current page (thus causing 404 errors).<\/p>\n<p>For example, if the widget is in the sidebar of a page at: <code>http:\/\/mysite.com\/about\/<\/code> (or any page that doesn&#8217;t use the &#8220;Events&#8221; template provided by the plugin), then the permalinks for events look like: <code>http:\/\/mysite.com\/about\/my-event-123456789<\/code><\/p>\n<p>Is there a good way to set permalinks for events to a specific &#8220;Events&#8221; page, or do I just need to build that setting into my widget plugin (I&#8217;m not an experienced plugin developer)?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/eventbrite-api\/<\/p>\n","protected":false},"template":"","class_list":["post-6780080","topic","type-topic","status-publish","hentry","topic-tag-permalink"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6780080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6780080\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6780080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}