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 ...


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

That's probably because the "JSON API plugin" htmlescapes your text. So if you would just display it on site it should print OK, but if you need to work with it on the backend than just use html_entity_decode()


2

I would abstract the specific SOAP library away, so you can add support for more clients later. Similar to how WP_Http is a proxy for multiple HTTP implementations, and chooses depending on the server capabilities. I must have played with some of these libraries before but I don't remember which one. In general I prefer included PHP modules over external ...


2

I can't speak to SOAP specifically, but I did build a plugin (private) for a client once that had to communicate with a proprietary third-party web service. In this case, it was a non-RESTful interface which used a mix of querystrings and XML POST requests for submitting queries (depending on the complexity of the type of query), and returned result data in ...


2

I personally think connecting to SOAP can be a pain, especially if the server is Java, but I did do it in a custom plugin I developed for a client. Depending on your requirements you may not have to embed a special SOAP client since WordPress 3.2 dropped support for PHP 4 and PHP 5 has a built in SOAP client (search for SoapClient on php.net) Just make sure ...


1

Download XAMPP or WAMP and take some time to get familiar with it (it will set up a web server on your computer). You'll have to copy the WordPress folder into the www/ or htdocs/, access it from your browser and start the WordPress installation. Most likely, you'll want to make a custom theme for your WordPress installation. See here for more details: ...


1

Try to save jQuery.noConflict(); as jquery-no-conflict.js. Then enqueue everything with proper dependencies: <?php function img_scripts_with_jquery() { wp_enqueue_script( 'jquery-no-conflict', 'path/to/jquery-no-conflict.js', array( 'jquery' ), 'version', true ); wp_enqueue_script( ...


1

As I hinted at in my comment, I would use the rewrite API to handle this, specifically by adding a rewrite endpoint. That way you don't have to deal with working out what's an actual 404, and what's a request for one of your dynamically generated pages. It doesn't give you exactly the URL structure you have in your question, but I think it's a reasonable ...


1

You can use get_posts to get a list of posts, and then the WP_Post member variables to get and display the data that you need You van do something like this. You can refine it as you need <?php $args = array( 'posts_per_page' => -1); $posts= get_posts( $args ); if ($posts) { foreach ( $posts as $post ) { setup_postdata($post); ...


1

First, there's the debug query arg: ?dev=1, which you can simply append to the URl. AFAIK, the plugin relies on get_posts(), so you should be save to use &offset=10. _Disclaimer: Not tested, as I ain't got a setup with the plugin in use.`



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