PREVIOUS EVENT Feature

Home Forums Calendar Products Events Calendar PRO PREVIOUS EVENT Feature

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #722042
    redgizmo
    Participant

    Hello,
    We are trying program EC Pro to display in the calendar view a bar that shows the last previous event. We are not sure how to extract that information. Is there any hook that we can use? What do you recommend?
    Please go to URL + /events/ and see at the bottom.
    Thank you
    Pablo

    #722686
    Brian
    Member

    Pablo,

    I took a look at your site and see what you are trying to do and can help you get going in the right direction.

    I would recommend using the tribe_get_events() function:

    https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events

    If you follow along with the example and change the ‘eventDisplay’ to

    'eventDisplay'=>'past'

    That will get you past events, then you can modify the query accordingly to get the latest past event.

    Let me know if you get stuck somewhere and I can help out, thanks.

    #731568
    redgizmo
    Participant

    Thank you! That solved the problem.

    #731664
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need any other on something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘PREVIOUS EVENT Feature’ is closed to new replies.