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?
so you place your video inside a shortcode and then you can run a filter on that shortcode function. works like this (to be placed inside functions.php or some custom plugin): function so327822_wp_video_shortcode($output, $atts) { //get video ID by src $video_id = attachment_url_to_postid( $atts[‘src’] ); //get video meta $video_meta = wp_get_attachment_metadata( $video_id ); //uncomment next … Read more
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
How to register a embed handler as a fallback to a oEmbed handler?
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.
I’ve opened one of the missing images on a different tab and a ‘Forbidden 403’ message appears. The page shows as follows: 403 Forbidden You are not allowed to access this page. Possible problems: Missing index file Misconfigured mod_rewrite settings in .htaccess Authentication Failure Incorrect file or folder permissions Which are valid reasons you should … Read more
if you know php you could add it to a template using wp function http://codex.wordpress.org/Function_Reference/the_widget or there is wp code to pull in a feed and list it http://codex.wordpress.org/Function_Reference/fetch_feed if you want a non coding solution, there are some plugins like: http://webdesign.anmari.com/1649/shortcode-any-widget/
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.
Yes, there is actually a filter hook to change JPEG compression ratio. You could add these lines to your functions.php: add_filter( ‘jpeg_quality’, ‘jpeg_custom_quality’ ); function jpeg_custom_quality( $quality ) { return 70; } You may change 70 to whatever value you want.
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