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

Display the video duration.


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



(Optional) Text to display before the duration.

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


(Optional) Text to display after the duration.

Default value: '</span>'




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!