How to add a 2nd organizer to the event list

Home Forums Calendar Products Events Calendar PRO How to add a 2nd organizer to the event list

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1012294
    Eleni
    Participant

    I have a widget with an upcoming event list. Most of the times an event is organized by more than one organizer and I would like the second organizer to be seen in the list widget as well. How do I accomplish that?
    Thanks

    #1012493
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    To modify the List Widget you want to follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    To move and edit this file in your theme:

    events-calendar-pro/src/views/pro/widgets/modules/single-event.php

    Move to here:

    /yourtheme/tribe-events/pro/widgets/modules/single-event.php

    Our coding to show multiple organizers looks like this:

    $organizer_ids = tribe_get_organizer_ids();
    foreach ( $organizer_ids as $organizer ) {
    if ( ! $organizer ) {
    continue;
    }

    ?>
    <dd class="fn org">
    <?php echo tribe_get_organizer( $organizer ) ?>
    </dd>
    <?php
    }

    So you can add that in the file above where you would like it to display.

    Let me know if you have any follow up questions.

    Thanks

    #1014278
    Eleni
    Participant

    Thanks, it worked!

    #1014315
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to add a 2nd organizer to the event list’ is closed to new replies.