Template tags

Template tags

Used for outputting event information in the loop, the plugin includes several template tags listed below. Most tags can take a $post parameter which lets you specify the event ID/event post object you wish to show data for, if you don’t want to use it in the loop.

 

Event Section

display_event_status( $post = null )

Outputs the Event’s status. Uses get_event_status() which returns the status instead of outputting it.

is_event_cancelled( $post = null)

Returns true or false depending on whether or not the event has been cancelled.

display_event_permalink( $post = null )

Outputs the event permalink to the single event listing. Uses get_event_permalink() which returns it instead.

display_event_type( $post = null )

Outputs the event type, e.g. “Awards”. Uses get_event_type() which returns the event_type term object.

display_event_venue_name( $before = ”, $after = ”, $echo = true, $post = null)

p>Outputs the event’s venue name. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_venue_name() which returns the event_venue_name only.

display_event_location( $map_link = true, $post = null)

Outputs the event’s location. If the first parameter is true, the location will be linked to a google map. Uses get_event_location() which returns the location string.

display_event_ticket_option( $before = ”, $after = ”, $echo = true, $post = null)

Outputs the event’s ticket option. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_ticket_option() which returns the event_ticket_option only.

display_event_registration_end_date( $before = ”, $after = ”, $echo = true, $post = null)

Outputs the event’s registration end date. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_registration_end_date() which returns the registration_end_date only.

display_event_banner($size = ‘full’, $default = null, $post = null)

Outputs the event’s banner. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_banner() which returns the event banner only.

display_event_start_date( $before = ”, $after = ”, $echo = true, $post = null )

Outputs the event’s start date. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_start_date() which returns the event start_date only.

display_event_end_date( $before = ”, $after = ”, $echo = true, $post = null )

Outputs the event’s end date. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_end_date() which returns the event end_date only.

display_event_link_to_eventpage( $before = ”, $after = ”, $echo = true, $post = null )

Outputs the event’s link to eventpage link. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_link_to_eventpage() which returns the event link_to_eventpage only.

display_event_address($size = ‘full’, $default = null, $post = null)

Outputs the event’s address. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_address() which returns the event address only.

display_event_pincode($size = ‘full’, $default = null, $post = null)

Outputs the event’s pincode. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_event_pincode() which returns the event pincode only.

Organizer Section

display_organizer_logo( $size = ‘thumbnail’, $default = null, $post = null)

Outputs the organizer logo, by default using the thumbnail size. The default logo (when one is not present) can be passed as a URL in the second argument. Uses get_organizer_logo() which returns the logo if present.

display_organizer_name( $before = ”, $after = ”, $echo = true, $post = null )

Outputs the organizer name, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_name() which returns the name only.

display_organizer_website( $before = ”, $after = ”, $echo = true, $post = null )

Outputs the organizer website link. prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_website() which returns the organizer website url.

display_organizer_tagline( $before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer tagline, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_tagline() which returns the tagline only.

display_organizer_twitter($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer twitter link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_twitter() which returns the twitter name only.

display_organizer_facebook($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer facebook link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_facebook() which returns the facebook name only.

display_organizer_linkedin($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer linkedin link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_linkedin() which returns the linkedin name only.

display_organizer_xing($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer xing link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_xing() which returns the xing name only.

display_organizer_instagram($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer instagram link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_instagram() which returns the instagram name only.

display_organizer_pinterest($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer pinterest link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_pinterest() which returns the pinterest name only.

display_organizer_youtube($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer youtube link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_youtube() which returns the youtube name only.

display_organizer_google_plus($before = ”, $after = ”, $echo = true, $post = null)

Outputs the organizer google_plus link, prepending with ‘before’ and appending with ‘after’. Output is optional depending on the value of the $echo parameter. Uses get_organizer_google_plus()which returns the google_plus name only.