WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] oEmbed Filter?

[Resolved] oEmbed Filter?

  • When getting some content with the get_page function I can’t make an oEmbed video work. The template just returns the flat link to the file.

    Here is my code, I’ve tried apply the the_content filter but its not working.

    Any ideas / help!

    Thanks

    Ian.

    // load videos
    	$page_id = 724;
    	$page_data = get_page( $page_id );
    	$videos = $page_data->post_content; // Get Content
    	$videos = apply_filters('the_content', $videos);
    	echo $videos;
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] oEmbed Filter?’ is closed to new replies.