Tag Info

Hot answers tagged

17

You can use the oEmbed functionality baked into WordPress. Typically any video host on this list will return a thumbnail to you using oembed. Here is a list of default providers that WordPress uses for auto embedding in the content area. I've included non-video sources as well for the convenience of others. http://www.youtube.com/oembed ...


11

Not natively. You'd have to write some code to make it happen - there's a nice pastebin function that provide the necessary code to do it. Edit (12/19/2011): Yep here's how you can do this programmatically. Add the following two functions to your functions.php file and you should be good to go. The code has been commented to explain what's happening, but ...


7

Simply put [embed] is not a regular shortcode. Most of the time it does nothing. What happens when post content goes through the_content filter is following: [emded] is currently registered to do nothing ( __return_false() ) WP_Embed->run_shortcode() filter runs with low 8 priority all shortcodes are disabled [embed] is registered to ...


5

_e() echoes the translated string, which will not work in variable assignment. You need to use __(), which returns the translated string.


4

Notes before What you're asking for is a highly complex thing: Load next post after WP internal Data finished, played with some 3rd party player Load next post after YouTube player (javascript or ActionScript) finished The problem is not the redirect 1), but more how you want to know how & when to load the next post. 1) Which in fact(/imho) should ...


4

I'm from the team that developes BuddyPress Media. Till now, capturing a video involved expensive (in various ways) setups. It depended on flash and silverlight which could reach the hardware (mic and webcam) . Html5 is the way to go, now. However, the support isn't wide enough. This might help you: ...


4

I just finished a Wordperss site that had a similar need for playing video. I would recommend going the Youtube route. Youtube will handle hosting, file conversions and with iframe embedding you can be sure the most devices possible will see your videos. On the Wordpress side of the equation, there are many helpful plugins that work with Youtube. My ...


3

The problem with this is that each sites content is formated differently. If there was only one site you were wanting to pull from you maybe able to use curl() and then sort though the content. A better idea may be to grab content from the sites RSS feed and sort though and grab what you need. You could probably write a quick plugin that would either ...


3

ntechi, To answer your question in the comment above ("is it possible i take it from google? for example in google images if i type "Apple" then i get images of apple, but in such a way, that this apple wont be typed in google but into my dashboard, and it will go to google and display it on my blog is this possible?") The answer is more than likely "no". ...


3

You can filter the HTML output for oEmbed with oembed_result. Now test the HTTP host of the URL for www.youtube.com and add the parameter. The oEmbed result is cached in a post meta field to avoid too many requests. To update old posts I have added an activation helper that clears those cached content for Youtube embeds only. <?php # -*- coding: utf-8 ...


3

You can use the Blip TV API: http://wiki.blip.tv/index.php/Blip.tv_API Look for "How do I find the thumbnail for an item?" Examples of the API can be found in the wiki e.g. the PHP Example: include_once("blipPHP.php"); $blipPHP = new blipPHP("username", "password"); $respond = $blipPHP->info(4794325); returns a LONG array. Inside this you find: [3] ...


3

You need a media player. WordPress (and more importantly your server) doesn't know how to play media unless you've got it in via HTML5. You can use plugins like Viper's Video Quicktags which can parse it for you.


3

wp-includes/class-oembed.php has a public variable $providers. So you can build a small function to get all of them: function list_oembed_providers( $print = TRUE ) { require_once( ABSPATH . WPINC . '/class-oembed.php' ); $oembed = _wp_oembed_get_object(); $print and print '<pre>' . htmlspecialchars( var_export( $oembed->providers, ...


3

The plugin uses cURl direkt instead of WordPress' built in HTTP class. If your sever does not support cURL, the plugin can not work and you got this message. Deinstall the plugin and use another one. Or replace the curl_it() function within the plugin with something stable. Update The workaraound: Open the plugin file youtube-sidebar-widget.php and ...


3

filtering the_excerpt() If you remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' ) and add your own get_the_excerpt filter you can do this. The default filter (wp_trim_excerpt()) can be found on line 2023 of /wp-includes/formatting.php if you want to just modify that. The extent of what you need to do is just modifying which tags are allowed in ...


3

No, that is not possible. You can use oEmbed for some video sources, but for your own video you have to decide what a player you want to use. That’s exactly what plugins are for. There is no point in avoiding using them. Update In WordPress 3.6 support for native audio and video was added. Use the shortcodes [audio src="your/url"] and [video ...


3

You can use this plugin Wordpress Video Plugin and edit the code of this plugin and add the other sites in it. OR You have to integrate FFMPEG in wordpress.


3

You can't just put a play button over an image and expect it to play a video without some serious magic. What you can do easily is change the video oembed size depending on what the viewer is looking at, for example for the front loop you can have a very tiny (thumbnail size) video that plays, and if they click through to the post they get larger size. You ...


3

Aha! WordPress has a built in function for it :D <?php echo $embed_code = wp_oembed_get( $video ); ?> Simples.


2

It happens that I answered a similar Question. And adapting it a little bit, some serious magic can happen ;) Notes: the CSS is being printed inline. It should go with the theme's style.css and be adapted accordingly. each Featured Image is encapsulated in a div with id="videocontainer-' . $post_id . '". and a Javascript variable in printed together ...


2

Use 0 and 1 as shortcode values and use that show or hide the HTML attribute. Example with an element input and the attribute required: function input_shortcode( $atts ) { $values = shortcode_atts( array ( 'type' => 'text', 'value' => '', 'name' => '', 'id' => '', ...


2

This is how I retrieve video (or any non-image) meta data. // assuming you have an attachment ID $meta = wp_get_attachment_metadata( $attachment->ID ); // See what meta data is available print_r( $meta ); // always check for the property's existence before trying to display it if ( ! empty( $meta['width'] ) ) echo $meta['width']; You can echo any ...


2

From the looks of it, you aren't echo-ing the do_shortcode function, which you should. Try this: <?php echo do_shortcode('[video webm="http://mb2013.mercerbell.com.au/wp-content/uploads/2013/10/sample_mpeg4.webmhd.webm" width="640" height="360" autoplay="true" loop="true"]'); ?>


2

That width is dictated by the $content_width global, defined by the Theme. To change it, you'll need to hook into after_setup_theme and modify it: function wpse124075_setup_theme() { global $content_width; if ( ! isset( $content_width ) ) { $content_width = 640; // your value here, in pixels } } add_action( 'after_setup_theme', ...


2

My boss has a wordpress site Ah, so many stories start this way. You don't, of course, want to edit core WP files; if you do, you will lose the changes when you update, among other issues. Modifying WordPress core files Why not use the existing post/page editor and a plugin that will make it easy for him/her? ...


2

First: You will need a plugin that acts as an intermediary for your cloud storage. Cloud storage innately (if setup properly) will protect your files. I have used the CDN Vault plugin and it works great. It's a premium plugin that depends on Amazon S3 storage. It does some really great obfuscation and encryption so your files aren't easily stolen. Second: ...


2

What you're trying to do is likely to upset shared hosters regardless because generating video is not cheap from a computational resource standpoint, and most rules on a shared host are because there isn't much in the way of resources to begin with. You would be best carting your images off to a service that would do the job for you. Trying to duplicate the ...


2

Looks like this is two questions: how to get all the children that are audio, and how to get all the children that aren't audio. 1) The post_mime_type parameter of get_children can actually take a wildcard, so you could use: $children = get_children(array( 'post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => ...


2

The best solution here is to use the built-in filter for embed parameters: <?php function mytheme_embed_defaults( $defaults ) { return array( 'width' => 100, 'height' => 100 ); } add_filter( 'embed_defaults', 'mytheme_embed_defaults' ); ?> This code can be added to your theme's functions.php file and you can change the numbers ...


2

edit tag.php (or archive.php if tag.php does not exist) and look for the_excerpt(); - exchange it with the_content(); codex the_excerpt() codex the_content()



Only top voted, non community-wiki answers of a minimum length are eligible