I’m trying to create a custom shortcode to pull event data and display it in a customized way. The reason I wanted to do this was to avoid having to hack apart how the core shortcodes work in EE… Not sure if this is/was the best way to go or not, but either way, that was the idea.
Here’s the problem:
1. couldn’t get the EE_Event object to load (finally resolves—found how in the dev docs)
2. once accessing EE_Event data (which should give me close to everything I need, presumably), I can’t access data such as event date, event meta, event tax terms, etc.
So, the question I have is, how can I do a wp_query (basically speaking), and pull in the events tax terms (e.g. event category = “discovery”), and extra event info (date, tickets, registration button, etc.)?? Not finding much great info detailing all of this.
Thanks for the follow up. Can you tell me, how can I go about getting the ticket names for an event and output them into a page template? I want to query one event and return the ticket dates. Thoughts?
The support post ‘Create Custom Shortcode for Event Data’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.