Display past events on organizer's page

Home Forums Calendar Products Events Calendar PRO Display past events on organizer's page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #717697
    pavliscak
    Participant

    Hello, I would like to display past event under the upcoming on the single organizer’s page. I have tried editing single-organizer.php but it didnt work well. Could you please help me?

    Thank you in advance.

    Matus

    #719543
    Brian
    Member

    Hi matus,

    No worries, I can help you with this.

    In the single-organizer.php template you moved to your theme. (If you need help with that please consult the themer’s guide)

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Look for this coding around line 62

    <?php echo tribe_include_view_list( array('organizer' => get_the_ID(), 'eventDisplay' => 'upcoming', apply_filters( 'tribe_events_single_organizer_posts_per_page', 100 ) ) )?>

    You are going to want to change this part:

    'eventDisplay' => 'upcoming'

    To this:

    'eventDisplay' => 'all'

    So switch upcoming to all. That should do it, let me know if you have issues with that.

    Thanks

    #720361
    pavliscak
    Participant

    Thank you for your assistance, but after applying this, all events are displayed. I want to have upcoming events first and then past events, not all events sorted by months.

    Thanks

    #721896
    Brian
    Member

    Ok, I see what you are trying to do now.

    Another option for ‘eventDisplay’ is:

    'eventDisplay' => 'past'

    That will then show just past events. However, on that page it is not as easy as coping the coding creating the events and changing the ‘eventDisplay’ You can use that existing coding to display one or the other and then you would have to create another loop to display the other events either upcoming or in the past.

    However, that customization is going to be up to you, I can help if you get stuck, but not much more beyond that.

    Thanks

    #764736
    Brian
    Member

    I am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Display past events on organizer's page’ is closed to new replies.