YouTube

YouTube Embed Shortcode

mu_youtube Parameters

  • RequiredID (id): The YouTube video ID. Find it in the video URL after ?v= — for example, in https://www.youtube.com/watch?v=og5EzN2v1wE the ID is og5EzN2v1wE.
  • URL (url): Alternatively, pass the full YouTube URL instead of the ID. The shortcode will extract the ID automatically.
  • Title (title): Optional. A title displayed below the video player. Also used as the accessible label for the embed.
  • Type (type): Controls how the video is displayed. Options:
    • embed — Default. Displays an inline iframe video player.
    • link — Displays the video thumbnail with a play button overlay. Clicking opens the video on YouTube.
  • Show Title (show_title): Optional. Set to false to hide the title even if one is provided. Defaults to true.
  • Extra Classes (class): Optional. Additional CSS classes on the embed wrapper.

YouTube Shortcode Examples

Basic Embed by ID

Why Marshall?
Shortcode
[mu_youtube id="og5EzN2v1wE" title="Why Marshall?"]

Embed by Full URL

Why Marshall?
Shortcode
[mu_youtube url="https://www.youtube.com/watch?v=og5EzN2v1wE" title="Why Marshall?"]

Thumbnail Link (no inline player)

Shortcode
[mu_youtube id="og5EzN2v1wE" type="link" title="Why Marshall?"]