WordPress.org

Ready to get started?Download WordPress

Forums

oEmbed and Kickstarter (2 posts)

  1. technabob
    Member
    Posted 2 years ago #

    So I've been trying to register Kickstarter with the wp_oembed_add_provider function and for some reason it doesn't work for me.

    Here's and example calling kickstarter's oembed provider URL:
    http://www.kickstarter.com/services/oembed?url=http://www.kickstarter.com/projects/crypteks/crypteks-usbtm-encrypted-and-lockable-usb-solution

    Here's the code I added to functions.php

    add_action( 'init', 'add_oembed_providers' );
    function add_oembed_providers() {
        wp_oembed_add_provider( 'http://www.kickstarter.com/projects*', 'http://www.kickstarter.com/services/oembed', false );
    }

    I've added other oembed providers with no problem, and Kickstarter's oembed output looks like well-formed JSON, but wordpress just doesn't display the video embed no matter what.

    Any ideas?

  2. technabob
    Member
    Posted 2 years ago #

    FWIW, here's the JSON returned by Kickstarter:

    {"html":"<iframe frameborder=\"0\" height=\"410px\" src=\"http://www.kickstarter.com/projects/crypteks/crypteks-usbtm-encrypted-and-lockable-usb-solution/widget/video.html\" width=\"480px\"></iframe>","title":"Crypteks USB\u2122 - Inspired Design meets Ultra-Security","author_name":"Crypteks Inc.","provider_url":"http://www.kickstarter.com/","provider_name":"Kickstarter","version":"1.0","type":"rich","height":410,"author_url":"http://www.kickstarter.com/profile/crypteks","width":480}

Topic Closed

This topic has been closed to new replies.

About this Topic