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

Display the number of video likes.


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



(Optional) Text to display before the likes number.

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


(Optional) Text to display after the likes number.

Default value: '</span>'




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

function vimeotheque_the_video_likes( $before = '<span class="video-likes">', $after = '</span>' ){
	$post = \Vimeotheque\Helper::get_video_post();

	$output = $before . number_format_i18n( $post->stats['likes'] ) . $after;

	echo $output;

	return $output;

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!