Hey,
I’m using a loop from the examples on the docs pages to show a list of events, I’m just wondering if there’s a template tag I can use to display the category slug as a class?
Hi Dale-Anthony, sure, you’d have to use something like wp_get_object_terms for individual posts (http://codex.wordpress.org/Function_Reference/wp_get_object_terms) to pull in the events categories and then get the slug for each term to use for the class name. You can use the sample WP provides for an idea or this pastebin example for get_terms for another idea: http://pastebin.com/zz9hfTUQ