you can try to use get_terms() and then use custom taxonomy name ‘event-categories’
eg. https://wordpress.stackexchange.com/questions/136762/show-all-terms-of-a-custom-taxonomy
this is correct answer but I want a particular event category.
Can you explain exactly what data you’re trying to get?
is any way to get particular event category from database in mybooking page
just to confirm, what you’ve wanted to do is to display events categories in your frontend my-bookings page? if yes, you can modify template file at events-manager/templates/templates/my-bookings.php and then add the following snippet inside the loop
<?php echo $EM_Event->output("#_EVENTCATEGORIES"); ?>
to use templates: http://wp-events-plugin.com/documentation/using-template-files/
eg. wp-content/themes/Your Theme/plugins/events-manager/templates/my-bookings.php
Not all categories ,just only one category of a selected event
Am I right in thinking you want to show the category for each event shown on the My Bookings page?
First, you’d need to add a new <td> block around line 39 to create a column for the category.
Then, you’d need to add the line of code below somewhere near line 58, depending on where in the table you want to show the category.
<td><?php echo $EM_Event->output("#_EVENTCATEGORIES"); ?></td>
No problem. I’ll mark this as resolved.
In single page event it shows Bookings are closed for this event.