Add venue class to event post loop

Home Forums Calendar Products Events Calendar PRO Add venue class to event post loop

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32314
    Luke
    Participant

    Hey Guys, when I do a query on all events is there anyway to add a venue class to the event? I just want to colourise each event by a unique venue colour. Thanks in advance

    #32317
    Luke
    Participant

    Sorry I keep answering my own questions, this is the code I used:
    $venueID = tribe_get_venue_id();
    Then on the div i used:
    <div class="event-li venue-“>
    Is there anyway I can echo the Venue slug? eg, “this-venue”

    #32318
    Luke
    Participant

    <div class="event-li venue-“>

    #32340
    Barry
    Member

    Hi Luke! Most code will be malformed if you post it directly into the forum – right now we’d recommend you use a service like Pastebin or Gist and drop the links in here instead of posting code directly.

    #32348
    Luke
    Participant

    Is there anyway I can echo the Venue slug? eg, “this-venue” within the event loop?

    #32422
    Barry
    Member

    Would something like this help as a starting point?

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add venue class to event post loop’ is closed to new replies.