Support » Plugins and Hacks » Oembed with front end posting.

Oembed with front end posting.

  • Im trying to implement Oembed into this front end posting plugin called “Post from site”. Anyone familiar with this plugin and know how I go about adding oembed so that someone can put a link to video in the content?

Viewing 1 replies (of 1 total)
  • You don’t need a particular front end posting plugin to solve this issue. All you need to do is filter the_content when displaying it.

    function oembed_filter( $content) {
    global $wp_embed;
    add_filter( 'embed_oembed_discover', '__return_false', 999 );
    $comment_text = $wp_embed->autoembed( $content );
    remove_filter( 'embed_oembed_discover', '__return_false', 999 );
    return $content;
    add_filter( 'the_content', 'oembed_filter');

    FIY, If you need a more complex plugin for front end posting try out WCK – Front End Posting. http://www.cozmoslabs.com/wordpress-creation-kit-sale-page/

Viewing 1 replies (of 1 total)
  • The topic ‘Oembed with front end posting.’ is closed to new replies.
Skip to toolbar