I want to output the category identifier a tag in my registration_list_display.php file so that I can modify my css based on the category. I’m able to output the category id using
<div id="event_espresso_registration_form" class="cat<?php echo $event->category_id; ?> which returns the correct category array – however, since it returns something like 1,9, I cannot alter it using css. Is there a way to use the category identifier or name?
The support post ‘Add Category Identifier to Template Tags?’ 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.