There are 2 shortcodes implemented with the plugin: one for single video embed and another one for playlist embed. Please note that in order for the shortcodes to display the video embed, you will need the post ID of the video imported using the plugin, not the video ID from Vimeo.

Single video embed shortcode

[cvm_video]

Shortcode parameters

  • id : WordPress post ID resulted from importing a video using the plugin;
  • volume: playback volume; integer between 0 (mute) and 100 (max);
  • width: width in pixels of the video;
  • aspect_ratio: aspect ratio of the video; can be: 4×3, 16×9 or 2.35X1;
  • autoplay: autoplay video on page load; can be 0 (no autoplay) or 1 (autoplay video);
  • loop: the video will play again when it reaches the end (1).

The complete shortcode should look like this:

[cvm_video id=”post_id” volume=”20” width=”640” aspect_ratio=”16x9” autoplay=”0” loop=”0”]

Playlist embed shortcode

[cvm_playlist]

Shortcode parameters

  • videos: comma separated WordPress post ID resulted from importing a video using the plugin;
  • theme: playlist theme to use; can have values: default, carousel or wall;
  • loop: loop playlist (once a video has finished, the next starts automatically); values: 0 or 1;
  • volume: playback volume; integer between 0 (mute) and 100 (max);
  • width: width in pixels of the video;
  • aspect_ratio: aspect ratio of the video; can be: 4×3, 16×9 or 2.35X1;

The complete shortcode should look like this:

[cvm_playlist videos=”post_id,post_id…” theme=”default” playlist_loop =”1” volume=”20” width=”640” aspect_ratio=”16x9”]

Shortcode visual interface

Shortcodes don’t have to be inserted by hand, you can use the visual interface available in the plugin to do so. There are 2 ways of inserting shortcodes from the visual interface when editing posts: the visual editor button (shows the Vimeo logo) or the meta panel available in the sidebar post edit interface. Both ways produce the same interface.

Once the shortcode modal window interface is open, you will notice 2 sides: left side for the playlist shortcode and right side displaying a list of video posts imported into your WordPress blog.

The table displaying the posts has 2 views: Videos and Posts. This is because you have the option to import Vimeo videos as regular post type (plugin Settings page, tab Post options, option Import as regular post type) or as the custom post type implemented by the plugin.

To create a playlist simply check the videos you want to put into that playlist and you will notice on the left side that the list under Videos in playlist will start populating itself with the videos you checked. Set the additional options under Playlist Settings (playlist theme, aspect ratio, width, volume and loop) and hit Insert playlist.

In you only want to embed a video, hover over the video on the right and from the entry actions click Get video shortcode, customize the video settings from the next screen (volume, width, aspect ratio and autoplay) and click Insert shortcode.