you could used categories_list shortcode with placeholder #_CATEGORYNAME
e.g.
[categories_list hide_empty=0]
<H2>#_CATEGORYLINK</H2>
#_CATEGORYNEXTEVENTS
[/categories_list]
http://wp-events-plugin.com/documentation/shortcodes/
http://wp-events-plugin.com/documentation/placeholders/
Thank you, agelonwl.
I need this result to be searchable within the events list. As far as I know short codes are not, correct?
I’m thinking I’d need to modify the $format in some way. That’s why I asked about php.
Maybe something like altering em_event.php if (empty (...
?
What is the php for showing the name of a category which has no current events within the events list?
I know you are inundated with questions, so I apologize for the bump.
This is the last thing I need in order to go live with EM. Your reply is much appreciated!
I’d say use http://codex.wordpress.org/Function_Reference/get_terms but WP doesn’t seem to allow to search only empty events.
One thing you could try is getting all the non-empty events and search events EXCLUDING those categories. Best way would probably be to use WP’s get_terms function to get the category IDs and then use e.g.
EM_Events::output(array('category'=>'-1,-2...'));