How to Embed Videos in WordPress
WordPress Plugin
WordPress DynTube Embed is a plugin ( https://github.com/dyntube-com/wordpress-dyntube-embed ) that facilitates the integration of DynTube videos and channels into WordPress sites. It provides functionality for video embedding with customizable options, including user tracking and responsive design.
Features
Shortcode implementation for easy embedding of DynTube videos and channels
Support for both iframe-based and JavaScript-based embed codes
Optional email tracking for user analytics (iframe embeds)
Responsive video embedding
Customizable video aspect ratios (iframe embeds)
Configurable maximum dimensions for both embed types
Download Plugin
You can download the WordPress plugin using this link https://files.dyntube.com/v1/wordpress/wordpress-dyntube-embed.zip
Installation
Access your WordPress dashboard and navigate to
Plugins
>Add New Plugin
>Upload Plugin
.Upload the
wordpress-dyntube-embed.zip
file. The latest version is available in thedist
directory.Activate the plugin via the 'Plugins' menu in WordPress.
Usage
Shortcode Syntax
Iframe-based Embed (Individual Videos)
JavaScript-based Embed (Channels or Videos)
Parameters
Iframe-based Embed Parameters
JavaScript-based Embed Parameters
Implementation Examples
Default 16:9 ratio iframe embed:
Iframe embed with email tracking:
Custom 9:16 ratio iframe embed:
JavaScript-based channel embed:
JavaScript-based channel embed with maximum width:
Identifier Retrieval
iframe_id
The iframe_id
is the unique identifier for a DynTube video. It can be obtained from:
The DynTube dashboard
The DynTube API
The final segment of the DynTube video iframe URL
Example: For the URL https://videos.dyntube.com/iframes/kt0E5TY8ABGTYkl4gf6uFQ
, the iframe_id
is kt0E5TY8ABGTYkl4gf6uFQ
.
channel_key
The channel_key
can be acquired through:
The
ChannelKey
field of a video when fetched using the APIClicking on a video title in the dashboard
The
Key
field of a channel when fetched using the APIClicking the three-dots icon next to the channel name in the dashboard
Other ways to Embed
Please watch the video below to enable you to learn how you can embed DynTube videos in your WordPress website.
Embed a video using a code editor in WordPress
Please watch the video to see how you can embed a video as well as a video channel.
Last updated