vimeotheque_the_video_duration( string $before = '<span class="video-duration">', string $after = '</span>' )

Display the video duration.


Description

Templating function that will display the video duration for the current video in the loop.


Parameters

$before

(Optional) Text to display before the duration.

Default value: '<span class="video-duration">'

$after

(Optional) Text to display after the duration.

Default value: '</span>'


Return

(void)


Source

File: includes/libs/templates/post-template.php

function vimeotheque_the_video_duration( $before = '<span class="video-duration">', $after = '</span>' ){
	$duration = vimeotheque_get_the_video_duration();

	if( $duration ){
		echo $before . $duration . $after;
	}
}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!