Loop Functions

Display functions (template-tags) for use in WordPress templates.

Event Title (Display)

tribe_events_title([bool $depth = true])

Display an event’s title with pseudo-breadcrumb if on a category

Parameters

  • bool
    $depth: include linked title

Returns

  • void

More Info

  • since: 2.0

Event Title

tribe_get_events_title([bool $depth = true])

Return an event’s title with pseudo-breadcrumb if on a category

Parameters

  • bool
    $depth: include linked title

Returns

  • string

More Info

  • return: title
  • since: 2.0

Link to Past Events

tribe_get_past_link()

Returns a link to the previous events in list view. Used in the loop view.

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Link to Upcoming Events

tribe_get_upcoming_link()

Returns a link to the upcoming events in list view. Used in the loop view.

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Date View Test

tribe_is_by_date()

Check if current display is "bydate"

Returns

  • bool

More Info

  • since: 2.0

Single Day Test

tribe_is_day()

Returns true if the query is set for single day, false otherwise

Returns

  • bool

More Info

  • since: 2.0

New Day Test

tribe_is_new_event_day()

Called inside of the loop, returns true if the current post’s meta_value (EventStartDate) is different than the previous post. Will always return true for the first event in the loop.

Returns

  • bool

More Info

  • since: 2.0

Past Loop View Test

tribe_is_past()

Returns true if the query is set for past events, false otherwise

Returns

  • bool

More Info

  • since: 2.0

Show All Test

tribe_is_showing_all()

Returns true if the query is set to show all events, false otherwise

Returns

  • bool

More Info

  • since: 2.0

Upcoming Loop View Test

tribe_is_upcoming()

Returns true if the query is set for upcoming events, false otherwise

Returns

  • bool

More Info

  • since: 2.0

Modern Tribe Newsletter

Insight, Discounts & Notices for People Who Kick Ass..