WordPress Automatic YouTube Video Posts Functions
There are several extra functions available to you when using this plugin.
tern_wp_youtube_image
<?php tern_wp_youtube_image(); ?>
This function allows you to display a thumbnail of the each and any video in your wordpress loops. It takes two parameters:
- The I.D. of the youtube video which when left blank defaults to the I.D. of the youtube video associated with the post in the loop.
- Echo – This parameter determines whether the image is printed to the page. It defaults to true. If set to false the image HTML will be returned by the function but not printed to the page.
tern_wp_youtube_video_meta
<?php tern_wp_youtube_video_meta(); ?>
This function allows you to print meta data about the video (including the video’s author, publish date, url and embed HTML) to any page or post with an associated YouTube video. This function takes one parameter:
- Echo – This parameter determines whether the meta data is printed to the page. It defaults to true. If set to false the meta data HTML will be returned by the function but not printed to the page.
tern_wp_youtube_list
<?php tern_wp_youtube_list(); ?>
This function allows you to print a list with pagination of all your videos. It can be placed in any template file.
Home > Products > Plugins > WordPress Plugins > WordPress Automatic Youtube Video Posts > WordPress Automatic YouTube Video Posts Functions