Getting a 404 Error with Vimeo on WordPress? Get the Solution Here

WordPress users who embed Vimeo videos with oEmbed came across a frustrating problem last week when their videos stopped working. It turns out that it’s a simple problem, with  a simple solution, but no doubt it has been causing Vimeo users hours of frustration.

The Problem

WordPress Core registers Vimeo as this:

'#http://(www.)?*#i' => array( '{format}', true ),

However, the Vimeo API for oEmbed has the URL without the www. So this works:

but the former doesn’t.

The Solution

There are two solutions to this problem with Vimeo which should get you back on track.


You can add this piece of code to your functions file which will register Vimeo correctly:

add_action('init', 'add_vimeo_oembed_correctly');
function add_vimeo_oembed_correctly() {
wp_oembed_add_provider( '#http://(www.)?*#i', '{format}', true );

Thanks to Brady for this solution.


Another WordPress user has created a plugin which solves the problem. You can download the plugin from here.

WordPress are aware of this issue and a trac ticket was raised. The problem has been fixed so next time you update the problem should be solved.