Is there a way to create embed codes from wordpress/buddypress content?
Is there a way to create embed codes from wordpress/buddypress content?
Is there a way to create embed codes from wordpress/buddypress content?
Youtube urls and other services that embed content in post content work via a feature called oEmbed. You need to use wp_oembed_get() to fetch the embedded content for this to work. In your case, you’re inserting content directly, so you probably don’t want to just call wp_oembed_get() and call it a day. That won’t work. … Read more
I’m only guessing but it sounds like your insert method is tripping up on one of WordPress’s filter functions (e.g. wp_filter_kses). If you need a more exact answer, please update your question to include some of the code you’re using to insert the post content.
This is not a built-in feature, but if you install the Show Content Only plugin into WordPress, this functionality will be available – simply add: ?content-only=1 … to the end of the post URL to get the content only.
If you’re using Apache, you can add something like this in your .htaccess file AddType application/octet-stream .pdf This will force everything with a .pdf extension to download instead of display in the browser. If however you are not using Apache or if you want only certain files to download and others to display directly, you … Read more
I was able to get all the embedded media content within a post using a new WordPress hook (3.6+). get_media_embedded_in_content();
Try just pasting the YouTube URL in to the post or page in the text editor with-out embed code as an editor. See if that works never heard anyone having this problem… https://www.youtube.com/watch?v=VYmp9HmMYwU&t It’s super easy to embed videos, images, tweets, audio, and other content into your WordPress site. This feature was added in WordPress … Read more
There’s always a filter you can use to hook into the output, see embed_oembed_html. Try this in a custom plugin or child theme’s functions file, it will add any other query strings to the iframe src attribute: add_filter(“embed_oembed_html”, function( $html, $url, $attr ) { parse_str(parse_url($url, PHP_URL_QUERY), $url); if ( $url ) { foreach ( $url … Read more
When you’re referring to using oEmbed codes, I’m assuming that you’re referring to WordPress’ ability to take a URL to media (such as one from YouTube) and automatically embed that into a post. If that’s the case, then you can take advantage of the embed_oembed_html hook that WordPress provides. Here’s how you can do it … Read more
Prerequisite: Custom Plugin First you’ll need a small plugin. Just copypaste it into a .php file, add it to some folder, zip and upload it to your installation an you’re done. What it does This small plugin only checks if the wpembed query part is present and if it is set to true. If both … Read more