Getting the category of the event

This topic contains 1 reply, has 1 voice, and was last updated by  Cameron Underdown 9 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15886

    I am working on a way to change the background of a section based on the event category. I want the event category to print as a class in the event-single.php template, something like

    <section class=”event_category“>CODE</section>

    . That way I could change the background based on what the event’s category was.

    What code would I use to essentially get_event_category() or get that info to print in that area? Thanks so much!

    Cameron Underdown
    #15889
    Cameron Underdown
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.