Metacafe is a video-sharing website that specialises in short-form video entertainment. Founded in July 2003 in Israel, Metacafe now ranks around the 1200 mark on Alexa , and the site maintains a significant presence in the video sharing space. This article will show you how to include responsive Metacafe videos on your WordPress post or page with shortcode.
Note: This code no longer seems to work and is due for an update.
The Result
Using the shortcode of [metacafe v="11555883"]
(using the video ID obtained from each video URL) or [metacafe v="http://www.metacafe.com/watch/11555883/daddy-scares-her-little-girl-with-shadow-monster/"]
(the full video URL), the following video will be returned:
[metacafe v="11555883"]
As with other shortcode we've provided, it's generally best practice to use the video ID rather than the full URL.
Shortcode Parameters
v
width
height
WordPress Shortcode
Copy and paste the WordPress function into your theme's functions.php
file or, if you sensibly have one installed, your custom functions plugin.
If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.
Considerations
- Metacafe has a habit of providing a vertical scrollbar on each video that it renders via an iframe. For that reason, I've added
scrolling="no"
to the final code avoid them. The video won't be affected. - If you can embed the same video from YouTube or any other reliable source, it's best to do so to avoid the annoying auto-start preroll adverts.
Download
Removed