Hi,
…i’m trying to customize the list/and or photo view of the calender pro plugin. But i got a problem: I want to add custom styles to the list view depending on the category an event is posted in. My suggestion is: I need to know the event categories name and make it selectable as an css class f.e. to the title … but how do i get the name of an events category as a string?
I tried this code…but
<?php
echo tribe_get_event_categories(get_the_id(), array(
'before' => '',
'sep' => ', ',
'after' => '',
'label' => null, // An appropriate plural/singular label will be provided
'label_before' => '',
'label_after' => '',
'wrap_before' => '',
'wrap_after' => '',
)
);
?>
..i’m getting the label and the link and so on…
Can anyone give me a hint? Where do i have to look?! Which code do i have to use?!
Regards Beni