Hi!
I want to edit my widget-event-list.php template to have a message after the loop:
See all Workshops
See all Classes
But I need the phrase to show up conditionally depending on the category I’ve selected to display in the widget configurations.
Is there an eo template tag to accomplish this?
Thanks!

Alicia St Rose
So the widget is set to show only a specific category and at the bottom you want a link to say ‘Show all [category]’?
The following should do that:
if( $eo_event_loop->is_tax( 'event-category' ) ){
$cat = $eo_event_loop->get_queried_object();
printf(
'Show all <a href="%s">%s</a>',
get_term_link( $cat, 'event-category' ),
$cat->name
);
}
I’m not sure what happens if multiple categories are selected though…

Stephen Harris
Awesome!
That worked. Fortunately, I’m only dealing with one category at a time.
Thanks so much!
LOVE, LOVE, LOVE the plugin.
Do you have a gallery of sites using your plugin? I’d love to share my last project.

Alicia St Rose
You’re welcome :).
Not yet, but I’m in the process of gathering sites. So if you’d like yours to be included please drop an e-mail here: http://http://wp-event-organiser.com/contact, and that’ll be very much appreciated (always great to see how the plug-in is being used).

Stephen Harris