How to Embed a Video in WordPress

A video can be a great way to illustrate your content. There are many WordPress video plugins out there to embed a video in a post/page. Some of them can be used to embed a video from a video-sharing site such as YouTube, Vimeo, Wistia. Some plugins also support self-hosted video embedding. As of WordPress 3.6, This feature is available in WordPress.

Embedding Video From Media Library

To upload a video to your WordPress Media Library, click on the Add Media button of the post/page you are currently viewing.

screenshot of video embedding from WordPress media library

Once you have uploaded the video select Embed Media Player and hit Insert into page.

screenshot showing the video embed in edit screen

Additionally, you can customize some video attributes by clicking on the Edit icon,

Preload: It defines how the video should load when the page loads.

  • metadata – default is “metadata”. That means only metadata should load.
  • none – video should not load.
  • auto – video should load entirely.

Autoplay: It causes the video to automatically play when the page loads. The default value is “off”.

Loop: It causes the video to loop to the beginning when finished.

Poster: It defines an image to show as a placeholder before the video plays.

Embedding Video From URL

If you are hosting the video in a custom directory on your server or a remote server you can directly paste the URL into the Insert from URL field.

screenshot showing how to embed a video from URL in wordpress

Embedding Video Using a Plugin

Easy Video player is a WordPress video player plugin which allows you to embed a MP4 video using flowplayer.

Selling Video

WP eStore is a popular plugin for selling video or any type of media in WordPress.

Disclosure: This page may contain affiliate links. If you follow one of those affiliate links and purchase something it will provide me with a little bit of a commission. This costs you nothing extra but helps maintain my site, free plugins, and themes. So I thank you for your support.

2 thoughts on “How to Embed a Video in WordPress”

  1. How do I enter the code to make my video loop as well as be centered on the page? I just get the code even when in Visual mode.

    My code currently looks like this:
    [evp_embed_video url="http://lime-technology.com/wordpress/wp-content/uploads/17893941.mp4" width="500" autoplay="true" ratio="0.56"]

    Thanks.

    Reply
    • @Tom, You can specify loop=”true” in the shortcode for the loop functionality.

      Reply

Leave a Comment