Just type a title above the shortcode.
Events for Parents
[ecs-list-events cat=’parents’]
Events for Teens
[ecs-list-events cat=’teens’]
Events for Kids
[ecs-list-events cat=’kids’]
That’s not what I’ve talked about.
I talked about editing the php code because I needed to show the category with the default shortcode [ecs-list-events]
But I’ve just solved the problem using tribe_get_event_categories()
Thanks anyway.
Hello Tallavic, would be great if you can explain how you did it, since I need something like that (I need to show the categories of the events on the events list).
Thank you,
Xavi
I’m not sure, but if I remember, I’ve put this code:
$output .= tribe_get_event_categories() . '<br/>';
in the-events-calendar-shortcode.php, inside the final foreach
Works flawless!
Thanks for your fast reply Tallavic
I want this as well. But adding:
$output .= tribe_get_event_categories() . '<br/>';
before:
endforeach;
$output .= '</ul>';
makes it show this after each line (with an enter):
<div>Evenement Categorie:</div>
<ul class="tribe-event-categories"><li><a href="http://bureaukennis.jouwtestwebsite.nl/agenda-open-cursussen/categorie/studiemiddag/" rel="tag">Studiemiddag</a></li></ul>
Hello Settler,
So where’s the problem? As I can see, it displays the category Studiemiddag.
If you dont want to show the div “Evenement Categorie”, you could add the following class to your css.
ul.ecs-event-list li.ecs-event div {
display: none;
}
Let me know if it solves your issue.
Xavi
Nah, I removed it and solved it by adding the Category before the title with this:
https://gist.github.com/geoffgraham/13507339558394034730