Hi, is it possible to display the category title in the upcoming events widget when there is no specific category selected? It does work when I select a category and use “$category_name”, but I want to use all categories.
Im not sure I follow what you are trying to say, how can you display a category title if the event doesn’t have a category attached to it? There is no data there as it isnt selected so nothing will display.
If you are trying to display a list of categories that will link to a page with the appropriate events, sorry no we don’t have that functionality at this time.
What I mean is that I am using the upcoming events Widget, which shows a couple of events. But I’d like to also show the category every event belongs to. But it doesn’t show a category unless I select a specific category in the Widget.
If you have no objection to editing the widget.php template (make sure it is copied to the uploads/espresso/templates directory and edited there) then you can add the following code around line 129 where the event link is echoed.
The support post ‘Display gategory title in upcoming widget’ 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.