eo_get_venue_slug
since 1.0.0
eo_get_venue_slug( $event_id = '' )
Returns the slug of the venue of an event.
When used without an argument it uses the event specified in the global $post (e.g. current event in the loop).
Can be used inside the loop to output the venue id of the current event.
Examples
Inside the loop, you can output the current event's venue
<?php echo eo_get_venue_slug(); ?>
Get the last start date of event with id 7
<?php $venue_slug = eo_get_venue_slug(7); ?>
Parameters
Return value
int
|
The corresponding venue (event-venue term) slug
|
Changelog