Replies: 0
Hi,
I’m struggling hard with how to retrieve data the right way from the Events Manager to write custom templates. So far, I’ve fiddled around with
a) Object based approach as indicated here
b) The format files override approach as explained only in a readme.txt file in the plugin’s source tree.
c) The custom template override approach as shown here and here.
While I appreciate the multitude of ways to achieve results, the downside seems to be a lack of API documentation. For example, when using the object approach:
How to extract the (first) event category, a given event hast been assigned to? That’s what I’m looking for:
global $EM_Event;
$event = $EM_Event;
$location = $event->get_location();
$category = $event->get_categories();
But how to retrieve the actual category name programmatically from the $category
object, which appears to be a (non-api-documented) EM_Categories object? What public attributes and methods are available for Events, Categories, Locations, Bookings and what parameter do methods expect…?
Thanks a lot for your help.