Artiss YouTube Embed
A simple to use method of embedding YouTube videos into your posts and pages but with powerful features for those that need them.
Description
Artiss YouTube Embed (formally YouTube Embed) is an incredibly simple, yet powerful, method of embedding YouTube videos into your WordPress site. Options include:
- XHTML and HTML5 compliant - works with all the latest browsers
- Multiple embedding methods available - OBJECT, IFRAME, CHROMELESS and EmbedPlus
- Allow users to add videos to comments
- Build your own playlists and play them back however you want
- Create multiple profiles - use them for different videos to get the exact style that you want
- Google compatible metadata is added to the video output - great for SEO!
- Code is cached for maximum performance
- Using a different YouTube plugin? Documentation and tools are provided to help you migrate to Artiss YouTube Embed
- And much, much more!
It has all the features of other similar plugins - Smart YouTube, for instance. In fact if there's a feature in another YouTube embedding plugin that this doesn't have, let me know - I haven't come across it!
To add a video to a post or page simply use the shortcode [youtube]video[/youtube], where video is the ID or URL of the video. Alternatively, you can add one (or more) widgets to your sidebar.
Within the administration area of your blog you will find a new menu named YouTube (see screenshot 1). Click on the Options sub-menu to set a number of general options. Alternatively click on the Profiles sub-menu to set the default options which define the output of your videos - any videos you display (unless overridden by parameters - more on that later) will use the settings from the Profiles screen.
Although this document contains a lot of information more is available from a series of linked pages, plus as much information as possible is provided on the various administration pages. Whilst on the administration pages, click on the "Help" button in the top right for some useful tips and links. If anything isn't covered and you're unsure of what it does please ask on the forum.
Not yet convinced? See the feature comparison between this and the top 10 alternative plugins for embedding YouTube videos.
Advanced embedding options
A basic shortcode will embed your video using your default profile settings. However, you may wish to override some of these options on a video-by-video basis - this is done via parameters added to the shortcode.
e.g. [youtube width=300 height=200]Z_sCoHGIpU0[/youtube]
Which options are available depends upon the embedding type you're using - you can specify any of them but, depending on the type, they may be ignored. There are 3 types - OBJECT, IFRAME and EmbedPlus. IFRAME is the current YouTube default and will use HTML 5, if available - this makes it ideal for maximum compatibility. However, HTML5 has a number of features that's not available with the standard Flash player.
The following parameters work with all embed types:
- audio - yes or no, this will hide the video and display just the toolbar (ideal for audio only playback) if switched on
- autoplay - yes or no, should the video automatically start playing?
- height - the video height, in pixels
- list - if you've specified your own list, use this to select the way the videos should be output. Should be
random(display videos in a random order),single(show just one video, randomly picked from the list) ororder(show each video in the original order - this is the default) - profile - specify a different default profile (see section on Profiles for further details)
- ratio - allows you to define a window ratio - specify just a height or width and the ratio will calculate the missing dimension. Uses the format x:x, e.g. 4:3, 16:9
- start - a number of seconds from where to start the video playing
- style - apply CSS elements directly to the video output
- template - specify a template (see section on Templates for further details)
- type - which embedding type to use, this can be
embedplus,iframe,objectorchromeless - width - the video width, in pixels
The following parameters will not work with EmbedPlus:
- autohide - 0, 1 or 2, this parameter indicates whether the video controls will automatically hide after a video begins playing. The default behaviour, a value of 2, is for the video progress bar to fade out while the player controls (play button, volume control, etc.) remain visible. If this parameter is set to 0, the video progress bar and the video player controls will be visible throughout the video. If this parameter is set to 1, then the video progress bar and the player controls will slide out of view a couple of seconds after the video starts playing. They will only reappear if the user moves her mouse over the video player or presses a key on her keyboard.
- controls - yes or no, should the controls be shown?
- https - yes or no, whether to use HTTPS for the video
- loop - yes or no, whether to start the video again once it ends
- theme - dark or light, display player controls (like a 'play' button or volume control) within a dark or light control bar
The following parameters will not work with EmbedPlus or if IFRAME uses HTML5:
- annotation - yes or no, this determines if annotations are shown
- cc - yes or no, decided whether closed captions (subtitles) are displayed
- color - white or red, the colour of the progress bar (see the FAQ about having a white progress bar with the light theme)
- disablekb - yes or no, disable keyboard controls
- fullscreen - yes or no, this will add the fullscreen button to the toolbar. This also works with EmbedPlus.
- info - yes or no, show video information
- link - yes or no, link video to YouTube
- related - yes or no, show related videos
The following parameters are only for use with EmbedPlus:
- hd - play the video in HD quality, if available
- react - yes or no, this specified whether you wish to show the Real-time Reactions button
- stop - this stops the video at a specific time, given in seconds
- sweetspot - yes or no, this will find sweet spots for the next/prev buttons
Alternative Shortcodes
Within administration, selecting Options from the YouTube menu will provide a list of general options. One section is named Alternative Shortcodes and allows you to specify 1 or 2 additional shortcodes - these will work exactly the same as the standard shortcode of [youtube].
There are 2 reasons why you might want to do this...
- If migrating from another plugin, it may use a different shortcode - more details can be found in the section named "Migration"
- If another plugin uses the same shortcode (e.g. Jetpack) this will allow you to specify and use an alternative
Each of the new shortcodes can also have their own default profile assigned to them (see the Profiles section for more details on this).
Function Call
As well as a shortcode you can also use a PHP function call to display a video (e.g. in a sidebar). The function is named youtube_video_embed and has 2 parameters - the first is the video ID (or URL) and the second is a list of display parameters. The display parameters are the same as those used in the shortcode but are separated by an ampersand.
e.g. youtube_video_embed( 'Z_sCoHGIpU0', 'width=300&height=200' )
Widgets
Sidebar widgets can be easily added. In Administration simply click on the Widgets option under the Appearance menu. YouTube Embed will be one of the listed widgets. Drag it to the appropriate sidebar on the right hand side and then choose your video options - any that aren't specified are taken from your default profile.
And that's it! You can use unlimited widgets, so you can add different videos to different sidebars.
Playlists
YouTube allows users to create their own playlists - collections of videos that can be played in sequence.
Before version 2 of Artiss YouTube Embed, separate shortcodes and function calls had to be used to specify these. However, now you can simply specify their ID or URL with the standard methods.
e.g. [youtube]095393D5B42B2266[/youtube]
Playlists cannot be used along with the EmbedPlus embedding method.
A better alternative to playlists is the build-in lists function in Artiss YouTube Embed - see the Lists section for further details.
Templates
Both in the profile and as a parameter you can specify a template. This allows you to define any CSS that you wish to "wrap" around the YouTube output.
The template consists simply of any HTML that you wish but with %video% where you wish the video to appear.
e.g. <div align="center">%video%</div>
Be wary that when adding template via a parameter that any HTML included may cause your video to have
<
pre> tags wrapped around it. The easiest way to check and fix this is to view any post in the HTML editor and remove any
<
pre> tags that have been added.
Profiles
You've probably already had a look at the default profile, accessible by selecting Profiles from the YouTube administration menu option. Here you can specify the default option which will apply to any embedded video.
However, in the top right hand corner is a drop-down box and a button marked Change profile. Simply select an alternative profile and click the button and you can then edit the options for this alternative profile. You can even name it as well.
To use this profile, simply use the parameter profile= followed by the profile name or number. The options for this profile will then be used.
This could be useful, for instance, for having a separate profile for different parts of your site - posts, sidebar, etc - or for different video types (e.g. widescreen).
By default you have 5 extra profiles - if you wish to have more (or less) this number can be changed from the Options sub-menu.
Lists
Although this plugin will play standard YouTube playlists their playback options are limited. Instead you can create your own video lists. Under the YouTube administration menu is a sub-menu named Lists. Select this and you will be shown a screen where you can type in a list of video IDs (or URLS). You can also provide a name for the list.
When saving the list each video is validated.
As with profiles you can select the list from a drop down in the top right-hand corner. You can also change the number of lists from the Options sub-menu too.
To use a list, simply specify the list name or number instead of a video ID.
e.g. [youtube]List 1[/youtube]
There is also a parameter, named list, that lets you modify the playback of the list. You can either play each in turn, play them randomly, or have just one played (but picked randomly).
Transcripts
Some YouTube videos include transcripts - this is a text output of the speech from the video with timings added. These are available in XML format and can, via a function call or shortcode, be displayed in your post.
The shortcode transcript will display the transcript in your post along with the start time for each line. Simply supply the video ID as a parameter.
e.g. [transcript]MSPsrhCPt-0[/transcript]
If no transcript exists, nothing will be output.
For style purposes, the SPAN around the time has a class of TranscriptTime, the SPAN around the text has a class of TranscriptText and the DIV around the whole transcript output has a class of Transcript.
If you wish to use a PHP function call to get the transcript, then you would use the format get_youtube_transcript( ID ), where ID is the video ID.
In all of these cases, the original XML format has been changed to a readable output. If, though, you'd like to return the original XML format, then you can use the call get_youtube_transcript_xml( ID ).
Migration
Within administration, selecting Options from the YouTube menu will provide a list of general options. One section is named Migration. There are 2 boxes that can be ticked to activate 2 different types of alternative embedding - these have been provided to allow easy migration from other similar plugins. You can also assign a specific profile to these migrated options.
The first option, Bracket Embedding, allows YouTube IDs to be assigned within brackets - similar to shortcodes but without the actual shortcode name. e.g. [http://www.youtube.com/watch?v=Z_sCoHGIpU0].
The second option, Alternative Embedding, activates a short of other alternative embedding methods.
In both cases, activating these will impact performance so should only be used if absolutely necessary.
Read more details on which options to select for which plugin.
Further options
Thumbnails
Artiss YouTube embed also has the ability to return a thumbnail of a video (sorry, this doesn't work with playlists). There are two methods you can use for this - a shortcode or a function call.
Use the function call youtube_thumb_embed( 'id', 'paras', '', 'alt' ) to add a thumbnail to any part of your theme.
Like the video embed equivalent, the ID is the video ID and alt is the alternative text for the thumbnail image (optional). The parameters are different, however, but, again, are separated by ampersand.
The parameters are as follows...
- rel - specify a REL override, e.g. rel="nofollow"
- target - specify a TARGET override, e.g. target="_blank"
- width - this specifies the width of the thumbnail image
- height - this specifies the height of the thumbnail image
- version - which version of the thumbnail to use. This can be
default,hq(for a high quality version of the default image),start,middleorend. The latter 3 indicate where from the video the thumbnails are taken from
e.g. youtube_thumb_embed( 'id', 'rel=nofollow&target=_blank', '', 'Demo Video' )
To use the shortcode method, insert [youtube_thumb]id[/youtube_thumb] into a post or page to create a thumbnail of the relevant video ID which, once clicked, will open up the appropriate YouTube page.
Like the function call above, you can specify a number of parameters. They are the same as detailed above but with the addition of one further parameter...
- alt - specify some
ALTtext for the thumbnail image
e.g. [youtube_thumb target="_blank" alt="Demo video"]id[/youtube_thumb]
This overrides the TARGET and ALT elements of the thumbnail.
Video name
You can retrieve the name of a video via 1 of 2 methods.
You can call the PHP function get_youtube_name, passing it to the video URL or ID - this will return the name of the video.
e.g. echo get_youtube_name( 'Z_sCoHGIpU0' );
Alternatively, you can use the shortcode [youtube_name], again passing the video URL or ID. The video name will be displayed.
e.g. [youtube_name]Z_sCoHGIpU0[/youtube_name]
Shortened URL
You may return a short URL for any YouTube video by way of either a function call or a shortcode.
For a function call add youtube_short_url( 'id' ) to your code to return a URL (note that this is not written out, but returned as a value), where id is the video ID.
e.g. <a href="<?php echo youtube_short_url( 'Z_sCoHGIpU0' ); ?>"Click here for video</a>
This will create a link to a video using the short URL standard.
To use the shortcode method simply insert [youtube_url id=xx] anywhere within a post to return a shortened URL. xx is the ID of the video.
Download URL
If you wish your users to be able to download a YouTube video or playlist then you can do this via either a shortcode of PHP function call.
The function call is named get_video_download and has one parameter - the video ID. It will return the download link URL.
e.g. <a href="<?php echo get_video_download( 'Z_sCoHGIpU0' ); ?>">Download the video</a>
Alternatively, you can use the shortcode download_video. The content to link is specified between the open and close shortcode tags and there are 3 parameters...
- id - The ID of the video or playlist. This is required.
- target - The target of the link (e.g.
_blank). This is optional. - nofollow - yes or no, use this to specify whether a
nofollowtag should be added to the link. This is optional and by default it will be included.
e.g. [download_video id="Z_sCoHGIpU0" target="_blank"]Download the video[/download_video]
Caching
Caches are used to improve plugin performance. Under the YouTube administration menu is a sub-menu named Options. Select this and find the section named Performance. From here there are 3 cache options...
- Embed Cache - this is how long to store the resulting cache code. It will update if you change any parameters so, theoretically, shouldn't need to change. It defaults to 24 hours.
- Video Information Cache - video IDs are checked with YouTube to ensure that they're valid. This option lets you to specify how often this should be checked. This defaults to 1 hour.
- Transcript Cache - how long to store transcripts. Defaults to 24 hours.
In all cases putting the cache to 0 will switch off caching for that option.
Further Embedding Options
Under the YouTube administration menu is a sub-menu named Options. Select this and find the section named Embedding. There are 4 options here...
- Add Metadata - by default, RDFa metadata is added to video output. This can be switched on or off as required (see the FAQs for more information about metadata usage).
- URL Embedding - if you place a YouTube URL directly into a post then WordPress will convert this to a video. This, however, is not performed by Artiss YouTube Embed. Select this option to allow this plugin to take over this functionality.
- Comment Embedding - tick this to allow YouTube URLs added to comments to be converted to embedded videos.
- Feed - videos will not appear in feeds so use this option to decide whether you want them to be converted to links and/or thumbnails.
In the case of URL and Comment embedding a profile can be selected.
Licence
This WordPress plugin is licensed under the GPLv2 (or later).
Reviews & Mentions
New Technology Finds The Most Buzzed-About Parts Of Videos - SocialTimes.
Andesch tips on WordPress plugins! - Anders.
Critical Mass - Biking in Memphis.
Embedding YouTube Videos In Your WordPress Theme - FrogenYozurt.Com.
Installation
- Upload the entire
youtube-embedfolder to your wp-content/plugins/ directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- If you're updating from version 2.0.1 or before, please read the FAQ on backwards compatibility.
- That's it, you're done - you just need to add the shortcode wherever you need.
Frequently Asked Questions
How do I find the ID of a YouTube video?
If you play a YouTube video, look at the URL - it will probably look something like this - http://www.youtube.com/watch?v=L5Y4qzc_JTg.
The video ID is the list of letters and numbers after v=, in this case L5Y4qzc_JTg.
Why can't I change the player colour as I used to?
Artiss YouTube Embed is now using the latest version of the YouTube Player, named AS3. This does not allow for the player colour to be modified, and a few other options are now missing as well.
Equally, some options are not supported depending on whether you use the IFRAME or OBJECT embedding method.
Read more about which options are supported.
How do I add a border to the video
The border option is no longer available with the YouTube player. However, you can use the style option to mimic it. Simply add a style of border: 10px solid #b1b1b1.
When trying to display a video it says "An error occurred accessing the YouTube API"
This has been reported by a number of users - for some reason some people are unable to access the YouTube API, which is used by this plugin to determine the video type and whether it's valid or not. If you are one of them then simply go to the Options screen within the YouTube Embed administration menu and, near the bottom, there is an option to stop reporting API errors.
If you switch off API errors then the plugin will simply assume all IDs are valid and work out the type from the ID length (which is not set, so if this changes in future it may cause problems!).
I have requested further information on why these errors may be occurring from the YouTube forum but, as yet, I've had no response. Click here if you wish to track the request.
I've upgraded from an earlier version of Artiss YouTube Embed and one of the functions / shortcodes / parameters that I used is no longer documented
Code created for previous versions of the plugin should still work - however, the functions will not be documented to deter people from using them in the future.
So if I upgrade to this from an earlier version is it compatible?
It should be, yes, but with one exception.
If you have upgraded from version 2.0.1 or before and used the style parameter then it may cause some problems. This is because the style parameter now affects the CSS of the video. Before, it added a DIV "wrapper" around the video and applied the styles to this.
Therefore, if you used the style parameter to centre a video this probably doesn't now work. However, you can do this now by using the template parameter instead - please read the section on that for further help.
However, with the change to the way the style works you can now apply more direct styling to the video - e.g. adding a border.
Is the generated code standards compliant?
In all cases, yes. However, it depends on which options you choose as to which DOCTYPE it will validate to.
IFRAME does not work with XHTML so will only validate as XHTML transitional (this includes if you use IFRAME as the fallback to EmbedPlus).
If you include Metadata then you must use the XHTML Strict + RDFa DOCTYPE - in this case it validates.
If you don't include Metadata then it will also validate as HTML5 compliant.
The W3C Markup Validation Service was used to test the above.
You can read more about this here.
Which browsers does the output work on?
It uses standard OBJECT and IFRAME coding - this, along with the above standards compliance, means that the output should work on most browsers.
However, I can confirm that it's been tested in IE7 (IE8 in compatibility mode), IE8, IE9, Firefox 5 and Chrome 12.
Which version of PHP does this plugin work with?
It has been syntax checked as PHP 4. However, this does not guarantee PHP 4 compatibility and the minimum for WordPress is now PHP 5.2.4.
Although I attempt to keep with PHP 4 compatibility there are no guarantees of this.
A new box has appeared on my dashboard all about Artiss plugins
That's correct - all Artiss plugins will now add this feature to keep you up-to-date with the latest news and support links. If you wish to switch it off simply click on the "Screen Options" tab at the top and untick "Artiss News & Support".
Changelog
1.0
- Initial release
1.1
- Maintenance: Updated test video on options screen, as previous one had been removed
- Maintenance: Confirmed WP 3.0 compatibility
- Enhancement: Resulting XHTML code is better formatted, with comments identifying code location
1.2
- Enhancement: Minor changes to the XHTML code to prevent warnings from certain validators
1.3
- Enhancement: Added transparency option so that videos won't cover up layers
1.3.1
- Enhancement: New widget option to specify title
1.4
- Maintenance: Tidied up code
- Enhancement: Now supports multiple widgets - widget code completely re-written
- Enhancement: Support for EmbedPlus added
- Enhancement: Added option to suppress links back to YouTube
- Enhancement: Added functions and shortcodes for returning and outputting available transcripts
1.4.1
- Enhancement: HD option is available with EmbedPlus - updated the admin and widget screen to reflect this
1.4.2
- Enhancement: Added keyboard disable option
- Bug: Fixed bug which meant that people upgrading from previous versions may not be able to display video until they've been to the options screen and re-saved their default options
1.5
- Enhancement: Added clone of 'youtube' shortcode, called 'youtube_video'
- Enhancement: Editor now has YouTube button, which inserts the YouTube shortcode (this can be switched off in the options screen)
- Enhancement: Added new option to disable keyboard controls
- Enhancement: Added option to supply a ratio, in case height or width are not supplied - the missing parameter will then be calculated
- Enhancement: Option to create a download link (for video and playlist) using function call or shortcode
- Enhancement: You can now change on the options screen which set of parameters the demonstration video uses (i.e. "normal" or EmbedPlus). This allows you to try your options on a different video type without switching to it.
2.0
- Maintenance: Renamed to Artiss YouTube Embed from YouTube Embed
- Maintenance: Major re-write, using new coding standards
- Maintenance: AS3 player is now used, AS2 has been retired
- Maintenance: Compliancy and browser checked - XHTML and HTML5 compliant and works in all the latest browsers
- Maintenance: README completely re-written, contextual help added to admin screens and links to further information
- Enhancement: New administration screens, introducing multiple profiles and playlists
- Enhancement: Both OBJECT and IFRAME versions can be selected
- Enhancement: Migration options added, allowing compatibility with other similar plugins
- Enhancement: Can now specify full video URL as well as video ID
- Enhancement: No need to use separate shortcode for playlists, as they are automatically detected. Video IDs are also now validated
- Enhancement: Options to allow YouTube URLs not within shortcodes to be accepted, as well as in comments
- Enhancement: RDFa metadata added to code output
- Enhancement: Caching of code and ID checking to improve performance
- Enhancement: Templating system replaces CSS specification
- Enhancement: Improved editor button and link added to admin bar
- Enhancement: Many, many more changes - too many to list!
2.0.1
- Enhancement: Changed cache key encoding so that it was compatible with PHP 4
- Enhancement: Added autoplay option to EmbedPlus
- Enhancement: Re-instated
styleoption, allowing you to apply a direct set of CSS elements to the output - a requirement if you wish to add a border to the video, for instance - Maintenance: Updated screens and documentation to show the
startparameter works with EmbedPlus - Bug: Fixed incorrect caching of options - was only changing if override parameters were modified
- Bug: Video Information Cache will no longer reset to zero if the Embed cache is greater
- Bug: Added random ID to EmbedPlus output to resolve a bug that can affect IE users
2.0.2
- Enhancement: Strip tags from video ID, in case any have crept in
- Enhancement: Tidied some of the widget controls
- Enhancement: You can now specify YouTube short URLs as video IDs
- Bug: Removed reference to jscolor.js script, which isn't used
- Bug: Video IDs beginning with numbers are being confused with list numbers
- Bug: Corrected problem with random single videos being picked from a list
- Bug: Fixed problem with list where one video was being ignored and another repeated
- Bug: Modified widget code to allow for all states to be allowable. Defaults updated
- Bug: YouTube documentation states that if you don't specify the fullscreen parameter it will default to off. It doesn't. Corrected in the code
2.0.3
- Enhancement: Decode any passed
templateparameters, as WP may have encoded the content first - Enhancement: Improved file handling
- Enhancement: Now using HTTPS and version 2 of YouTube gdata API
- Enhancement: New general option to switch off reporting of API errors - will simply accept ID and work out type
- Maintenance: Added details to the README to cover issues with
stylebackwards compatibility and YouTube API
2.0.4
- Enhancement: Removed HTTPS access to gdata API - will add a switchable option for this in a later release
2.1
- Enhancement: New option to switch API options (where HTTP or HTTPS, display messages or not or even switch off)
- Enhancement: Output video playback errors as XHTML comments. Output to post a generic message which can be changed in the options
- Enhancement: Video information is shown in lists screen when first entering (no need to press Save button to display)
- Enhancement: Added new
colorparameter, which allows you to specify the colour of the progress bar - Enhancement: Added new
themeparameter, allowing you to specify if the player is dark or light skinned - Enhancement: Added new
httpsparameter, allowing you to use HTTPS instead of HTTP for the video display - Enhancement: Added new
versionparameter to thumbnails, allowing different versions (including a high resolution one) to be displayed - Enhancement: Added new administration option to allow the thumbnail used in RSS feeds to be specified
- Enhancement: Log the current plugin version into the database. This may be of use in future upgrades to detect which version the user is upgrading from
- Bug: Fixed video title no longer being fetched since 2.0.3 (because of using v2 of API)
- Bug: Fixed some error output - due to changes made in an earlier release some errors would not display
2.2
- Maintenance: Updated dashboard widget to latest version
- Maintenance: Added advertising banners to options screen - these can be turned off if you donate
- Enhancement: Replace WP_PLUGIN_URL with plugins_url()
- Enhancement: Added H and W as alternative shortcode parameters to HEIGHT and WIDTH
- Enhancement: Editor button should appear for anyone from editor role upwards
- Enhancement: Removed maximum length from profile and list names. However, only first 20 characters will appear in lists
2.3
- Bug: Fixed incorrect listing of long profile or list names
- Bug: Fixed INCLUDE bug in widgets.php
- Enhancement: Editor button will add text between shortcodes if no URL or ID is specified
- Enhancement: Square brackets are stripped from alternative shortcodes on option screen - text added to warn against this too
- Enhancement: Added Chromeless player option
- Enhancement: Increased maximum output length of profile and list names to 30 characters
2.3.1
- Maintenance: Removed the sponsorship

Known Bugs
View the Roadmap for Artiss YouTube Embed
View the Change Log for Artiss YouTube Embed
- Info switch is the wrong way round [View]
- Drop shadow not appearing correctly [View]
- If height or width missing on profile screen, video breaks [View]
Planned Enhancements
View the Roadmap for Artiss YouTube Embed
View the Change Log for Artiss YouTube Embed
- Add Google Analytics tracking [View]
- Ability to assign profile depending on page state [View]
- Log and report any errors reported [View]
- Add pop-out video option [View]
- Excerpt display options [View]
- Add custom title [View]
- Enable privacy-enhanced mode [View]
- Improve SSL functionality [View]
- Re-order changelog [View]
- Make modestbranding a switchable option [View]
- Re-add frameborder="0" to IFRAME [View]
- Introduce responsive video sizing [View]
- Add theme and HTTPS options to widget [View]
- New menu option to display README [View]
- Version of PressThis - auto logging of YouTube videos [View]
















Copyright © 2000-2012
Artiss.co.uk is checked by
Hey, first of all i must say im newbie at wp, but… what do you mean by “visting YouTube Embed options screen in your Administration menu” ? You mean the plugin’s editor? Or there should appear new entry under plugins with yt embed and it isn’t showing for me?
If you go into the Admin screen, on the left sidebar you should find “Settings” (a few menus under Plugins). Somewhere near the bottom of that menu uou should find “YouTube Embed”.
Found it, thanks.
But i have really strange problem. Plugin is working fine but after i’ve installed it i can’t access general options (blank white page showing instead). Could you tell me if installing your youtube plugin modified any wp .php files?
No it doesn’t. Have you tried deactivating my plugin to see if this restores the general options page? If this fixes it, let me know.
Well… i have similar problems with other plugins. And i’ve just noticed that the webserver where my wp is installed is a problem. I’ve installed local web server and wordpress. Your plugin is working fine, not causing any problems. Sorry to bother you.
What I have to do to make it working with excerpts?
Unless anybody knows otherwise, my belief is that excerpts have all code stripped from them, so any video output will not display.
Shortcode doesnt work for me. inside my post i typed [youtube]LirLYTfM0SY[/youtube] and all i get is a black box in dimensions i wanted with right and bottom scrollbars.
this is the video i want to embed
I’ve tried it on my own site with no issues.
The best thing to do is to get the source for the page (view/source in your browser probably) and send me the resultant file via my contact form.
I figured it out. I went to http://wordpress.org/extend/plugins/youtube-embed/other_notes/ and copied the shortcode but if you look at the source code of that page it comes up with < code>[youtube]id[/youtube]< /code>
Now if you type that inside any of your pages or posts it wont work as it didnt for me but if you type [youtube]LirLYTfM0SY[/youtube] it will work flawlessly. Figured it out when I switched to HTML vierw in my WP editor.
So correct this on your WP plugin page cause I think other people will just want to copy/paste [youtube]LirLYTfM0SY[/youtube] but they will get additional buggy code elements.
Thanks for the update. The CODE parameter is used to highlight code elements on the page – this is valid for the instructions page and not something I’d therefore want to remove.
The best advice is to cut and paste items like this into the “HTML” window when editing posts and not the “Visual” one – it doesn’t happen then.
First let me say, I really like this plugin! Thank you!
What does the option, “Enable Enhanced Genie Menu” do? I’m not seeing the difference when I switch it from “Yes” to “No”
Thanks in advance for your help!
lol. I’m not sure myself
According to the YouTube documentation…
I put the switchable option on simply because it exists. What it actually does is a different matter!
I added a playlist that contains 10 videos, but the player always displays 7 thumbnails and reads, “1-7 of 10″. Is there a setting or something else I can change so that it dispays all 10 thumbnails?
Sadly, YouTube provide few instructions on embedding playlists – they state that some of the standard video embedding parameters work, but don’t say which ones. They also don’t mention any additional ones. This is going to be a YouTube issue rather than a problem with the plugin one though.
Hey I have a feature request for this great plugin.
Can you make a checkbox that would say: Default to 480p, cause sometimes there is no HD quality available and I would like to be able to offer my visitors 480p at least and not the default 360p.
Thanks in advance
Unfortunately, YouTube do not provide an option to do that. Switching on the HD option should provide the best quality available though – does that not do it?
Yea it does but if HD quality doesnt exist I at least want to play it by default in 480p. But I see your point so nvm.
I activated your plugin. I noticed that some things don’t work. I posted an HD video and the plugin doesn’t start the video automatically in HD (even if I selected this option). Then the colour scheme doesn’t match, in my blog appears the video with the classic grey colour. At the end, even if I put “text-align:center” the video isn’t center aligned. In the preview page of Youtube Embed Options I see all the options applied correctly.
Garret, I’ve emailed you about this as I would like some further detail – specifically the default settings you have and the line of code you’re using to display your video. I can then try and recreate the issue myself.
If I would like to include a list of videos from posts on a category page, for example, and I want to include the function call in “the loop”, is there some functional reference (I’m sure there is) to the ‘id’ parameter so I can call them via the loop?
Yes there is – if you look through the instructions, there is a section named “Function Call” which details how to manually call the routine from within your own code.
Thanks for this plugin. I was glad to find a way to NOT show the related videos, but even when I uncheck that option in the settings, they still show. Any ideas? Thanks.
Oh also, it would be helpful if you would replace the deleted YouTube test video on the admin defaults page. Maybe you are not aware it has been deleted for copyright infringment.
After further discussion with Sally, I found that in her site’s source code the YouTube video was being displayed by YouTuber – another YouTube embedding plugin that she hadn’t turned off first. I used pretty standard shortcodes to make it easier to move from another plugin, but the down side is that running both will cause a clash. She deactivated YouTuber and she has no problems since.
I believe the embed have something wrong: http://twitpic.com/23mlqp
The errors you’ve got there are not reported via the official W3C validator. For example, it states that
<param>shouldn’t have an end tag – that’s correct for HTML but not XHTML (which this plugin is coded for). None of the issues reported should cause problems, whichever way we look at it.Yes, only warings, not big deal, but and object with style for set width and height be more valid, right?
I change this lines for xhtml validation:
http://pastebin.com/ryTn6Cyf
I have just released version 1.2, which will address these errors.
Hello- I really like this plugin and the initial installation was fine. I installed the plugin to my widget (with the Blog’s sidebar) but now I cannot find any options or parameters to change so that I can change the videos. Please help.
Thanks!
If you go back into Appearance -> Widgets from your admin menu, then the widget should be shown under the appropriate sidebar. Next to the widget name is an “arrow down”. Click on this to bring up the options.
Hi, Was loving the plugin — I switched from Smart YouTube to yours — until I just discovered the widget is NOT multi-instance.
Am I correct in thinking I can only use the widget in one place?
Anyway to change that? I really need to use the widget more than once.
ALSO, I really really need a “random” function. I tried two other plugins that promised “random” video selection in the sidebar. Neither plugin has been updated in 3 years and now 1 doesn’t show anything and the other only throws up error code.
I have 6 videos and want to show them randomly when a person hits a page.
Possible in a future release?
Hi Bob,
I’m looking at the multiple widget functions. I’ve not written many widget functions before, and have needed more than one
Anyway, I’m working out how to do it.
The random function I’ll also add to my “to do” list!
Hello and thanks for this plugin. Seems like the most simple one to do what I need it to.
I’m having one problem using the thumbnail shortcode. I am wrapping the id in [youtube_thumb][/youtube_thumb], but my sidebar is only displaying the ID, not the image. Any help is appreciated.
Unless you’ve activated shortcodes for the sidebar in your functions.php it won’t work – you should use the PHP function version instead.
Hi David,
When I attempt to put a playlist in a page, i get the following output instead. This might be me confusing where to find the playlist code on youtube, can you clarify this for me?
The output on my page is:
YouTube Embed: No video/playlist ID has been supplied
9EAD7C7BE801C985
YouTube Embed: No video/playlist ID has been supplied
The link to the playlist is:
http://www.youtube.com/user/hurricaneelectric#grid/user/9EAD7C7BE801C985
I don’t know how you’re calling my plugin, but the following shortcode method works for me…
[youtube_playlist]9EAD7C7BE801C985[/youtube_playlist]
Oh man interesting now it works…..:) well thanks again!
-A
good day to all,
very nice plugin i love it
i have a question i need your help
when i put the video in the sidebar fine it’s showing in my site
but the widget disapeare from the list i have as yhis it’s impossible to put an other video
manny thanks in advance for your help i am using wordpress 3.0.4
ciao from italy
Hi Joe. That’s because the plugin currently only supports one widget at a time. I’m planning on improving this in the next major release of the plugin.
hi David, many thanks for the answer, if i want to put more than one how can’i do, it’s impossible !!!!!
Hi David,
Thanks for this plugin. Did you ever manage to include a random function? I would love to pull up a random vid out of my videos.
Thanks
It’s still on my list for the next release!
Is there a way to make the video not go back to YouTube? I want to keep the visitors on my page. I’ve heard you can use this code w/embed “allowNetworking=”internal” to disable the function of going to YT to view the video. Is it possible to add this to the short code? If so, how?
thanks
Thanks for letting me know about this – it’s not in the official documentation but does appear to be a valid parameter. I’ll add it to the next release.