Docs    YouTube    Documentation

How Do I Embed a YouTube Gallery Directly into a WordPress Page Template?

Version 2.0

You can embed your YouTube gallery directly into a template file by using the WordPress do_shortcode function:

<?php echo do_shortcode('[youtube-feed feed=1]'); ?>

To get the correct shortcode for your feed(s), navigate to Feeds for YouTube > All Feeds.

Version 1.x

You can embed your YouTube gallery directly into a template file by using the WordPress do_shortcode function:

<?php echo do_shortcode('[youtube-feed]'); ?>

support

Couldn’t find your answer in the docs?

Contact Support