Link Functions

Link Functions

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

Single Event Link (Display)

tribe_event_link([ $post = null], int $postId)

Display link to a single event

Parameters

  • int
    $postId: (optional)

  • $post

Returns

  • void

More Info

  • since: 2.0

Link Event Day

tribe_get_day_link(string $date)

Parameters

  • string
    $date

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Link to All Events

tribe_get_events_link()

Returns a link to the events URL

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Single Event Link

tribe_get_event_link([ $post = null], int $postId)

Get link to a single event

Parameters

  • int
    $postId: (optional)

  • $post

Returns

  • string

More Info

  • since: 2.0

Link to Grid View

tribe_get_gridview_link([string $term = null])

Returns a link to the general or category calendar grid view

Parameters

  • string
    $term: Optional event category to link to.

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Link to List View

tribe_get_listview_link([string $term = null])

Returns a link to the general or category upcoming view

Parameters

  • string
    $term: Optional event category to link to.

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Link to List View (Past)

tribe_get_listview_past_link()

Returns a link to the general or category past view

Returns

  • string

More Info

  • return: URL
  • since: 2.0

Link to Next Event (Display)

tribe_next_event_link([string $anchor = false])

Display a link to the next post by start date for the given event

Parameters

  • string
    $anchor: link text. Use %title% to place the post title in your string.

Returns

  • void

More Info

  • since: 2.0

Link to Previous Event (Display)

tribe_previous_event_link([string $anchor = false])

Displays a link to the previous post by start date for the given event

Parameters

  • string
    $anchor: link text. Use %title% to place the post title in your string.

Returns

  • void

More Info

  • since: 2.0

Modern Tribe Newsletter

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