About this plugin
YouTube Feed allows for easy placement of a YouTube video feed anywhere on your posts, pages, or widgets using a shortcode.
- Specify the YouTube video feed
- Specify the number of videos to display
- Set the display to horizonal or vertical
- Set the thumbnail size
Shortcode Usage
- To add a YouTube feed to your posts, pages, or widgets use the following code:
[plumwd_youtube_display]
- To add the YouTube Feed plugin to your WordPress theme use the following code inside your template: echo do_shortcode('[plumwd_youtube_display]');
The plugin also supports several attributes for the shortcode, below is a listing of the attributes and what their purpose is:
-
channel -> this must be set or the feed will not display Usage:
[plumwd_youtube_display channel=”plumwd”]
-
videonum -> The number of videos to display. Will return the most recent videos uploaded to the feed. Usage:
[plumwd_youtube_display channel=”plumwd” videonum=”4″]
-
display -> accepts two different options: horizontal or vertical. Usage:
[plumwd_youtube_display channel=”plumwd” display=”horizonal”]
-
size -> Choose from four different size options xsmall, small, medium, large. Usage:
[plumwd_youtube_display channel=”plumwd” size=”small”]