Looking for information on how I can load up an Event Espresso event object or just directly get the categories that have been assigned to an Event specified by its EVT_ID (post_id)
I am trying to get the list of categories assigned to events through a custom wordpress plugin. I have it setup so I have the post_id or EVT_ID of the event I am looking for, but I am not sure how to get the categories.
For the above your single line is fine, using the models gives you quick and easy access to all of EE’s data (and related object data) and once you understand how they work you can grab pretty much any data you would need.
That’s not all that much different from what you have already, but as you need more info for the Event, that EE_Event object becomes much more useful to you.
Viewing 3 reply threads
The support post ‘How to get Event Topic from Event ID in Custom PHP plugin’ 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.