Generate: Shortcodes: YouTube Video

YouTube Video

The YouTube Video shortcode inserts a video link from YouTube into the content for each generated Page.

Shortcode displaying as a link on the generated Page? Ensure that your Theme or Page Builder is using WordPress’ built in filters for rendering content and oEmbeds.

To add a YouTube Video:

  • Click the YouTube icon in the Visual Editor toolbar:
    Page Generator Pro: Generate: Shortcodes: TinyMCE Toolbar Button
  • Enter the following information:
    Page Generator Pro: Shortcodes: YouTube Modal

    • Term: Enter a search term.  For example, to display an image of a building, use building
    • Location (optional): Optionally specify where the video is based.  This is used in conjunction with the Term above, so if we wanted to show an image of a building in Birmingham, UK, use Birmingham, UK
Shortcode not working? Consider removing the location option to provide a broader resultset, from which a video can be used.

A shortcode will then appear within the content:
[page-generator-pro-youtube term="{service}" location="{city}, UK"]

Parameter Accepted Value Description
term string or keyword The search term(s) to use to search YouTube videos.
location string or keyword Optionally specify where the video is based.  This is used in conjunction with the Term above, so if we wanted to show an image of a building in Birmingham, UK, use Birmingham, UK