How to Add a Featured Video To WordPress Post

Introduction

WordPress has Featured Image option as implemented by default, which we use as a representative for our post. But what if we want to add a featured video to your posts instead? Is that possible?
Yes, here is a solution. There are some plugins which will provide option same like featured image to add featured video. Also there are some themes which will allow you to add a featured video to your post.
Here I will show you how to add featured video to WordPress post via plugin.

Steps Included:

1.Login to your WordPress Administrator.

2.Go to Dashboard >> Plugins >> Add new >> Search for ‘Featured Video Plus’ plugin .

dashboard plugins

Add Plugins featured video demo

Or Dashboard >> Plugins >> Add new >> Upload Plugin.

3.I am using ‘Featured Video Plus plugin’. It is a free plugin which you can find in WordPress repository. How to download and install plugin from WordPress repository you can see it from here.

4.Activate and install the plugin.

5.Now you need to go to Settings >> Media. Here you can make changes in settings related to video.

settings media
i.Image Size: from here you can set the width and height for various image size like Thumbnail, Medium and Large.

img size

ii.Uploading Files: check this checkbox to organize your upload folder.

checkbox upload files

 

iii.Featured Videos: make some setting over here, as it provides various options related to video settings like usage, auto-play video sizing, video align, local video options, YouTube options, vimeo options, dailymotion options, support.

6.Once all the settings have been done, click on ‘Save Changes’ button.

7.After saving the changes, go to Dashboard >> Posts >> Add New Post.


Here in the top right side, you will see option as Feature Video.

8.Paste the url of any video you want to set as featured video for your post, and publish the post.


You will see the post with featured video instead of an image.

Note: If you don’t find a video on your post, no need to worry about it!!
you need to add a single line of code in your theme’s single.php file.
<?php echo get_the_post_video( $post_id, $size ); ?>
Add this line in the place of featured image. The featured video will be shown instead of featured image.
Here you may need to replace ‘$size’ with keyword(thumbnail,medium,large).
Now you will be able to see your video in your post.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.