get_permalink
-
I’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).
For example, if the widget is in the sidebar of a page at:
https://mysite.com/about/
(or any page that doesn’t use the “Events” template provided by the plugin), then the permalinks for events look like:https://mysite.com/about/my-event-123456789
Is there a good way to set permalinks for events to a specific “Events” page, or do I just need to build that setting into my widget plugin (I’m not an experienced plugin developer)?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_permalink’ is closed to new replies.