WordPress.org

Ready to get started?Download WordPress

Forums

WP Easy Embed
Making Selfhosted wordpress site as oEmbed Provider? (3 posts)

  1. vbk100
    Member
    Posted 2 years ago #

    Can you please let me know if I can let others to embed my own WordPress site in their Websites? There is a plugin named oEmbed Provider. So that the WordPress sites with wp-easy-embed enabled could embed my content

    Could it be possible to embed a Selfhosted WordPress site's content in such a way?

    I have checked my site in different ways to make it embed Provider. But no success. could you please let me know if it is possible in any way?

    Plugins I used : wp-easy-embed and oembed-provider

    Thank you!

  2. ibarmin
    Member
    Plugin Author

    Posted 2 years ago #

    So, one blog has oEmbed Provider installed and you want to embed posts from it on second blog, that has WP Easy Embed installed, right?

    For second site you should read this:
    http://codex.wordpress.org/Embeds#Adding_Support_For_An_oEmbed-Enabled_Site
    and add something like this

    <?php
    $sourceBlog = trailingslashit('http://example-blog.com/'); //if you installed wordpress in a folder, not in a root - add path to that folder
    $format = $sourceBlog . '*';
    $provider = $sourceBlog . 'wp-content/plugins/oembed-provider/oembed-provider.php';
    wp_oembed_add_provider($format , $provider ); ?>

    in your code (either in a plugin or in a theme functions.php file).

  3. vbk100
    Member
    Posted 2 years ago #

    Thanks ! I will try it

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic