Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
19

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 http://blip.tv/...


8

I will give you a small answer to your update, doing this with the WP API. The API have the possibilities to use the WP_Query like also in core, but about the get parameters in the url. A URL to pull content from Post Status would look like this: http://example.com/wp-json/posts To pull content with WP_Query parameters you’re used to, you could do it like ...


3

WordPress ships with an XML-RPC interface that's enabled by default. It gives you the ability to both retrieve and edit/create content on the site via XML. There's quite a bit of detail about the API available on the Codex. Updated There aren't (to my knowledge) any existing systems in place that do XML over GET for WordPress. Webpages tend to be some ...


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

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


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

To add a checkbox you need to use the add_meta_box function, with this you can create a metabox for the new post screen. You have to create a function that generates the checkbox element, and that's it. You can use the action publish_post to call the services you need when it happens, you have other options, like save_post. It really depends on how flexible ...


2

That's pretty simple, just use your website home url :) After that, just fire an action when the page is loaded via POST HTTP method and hook with a callback. add_action( 'wp_loaded', function() { if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) { // fire the custom action do_action('onchangeapi', new PostListener($_POST)); } } ); And now ...


1

I've used this plugin on a few websites: https://wordpress.org/plugins/wp-mail-smtp/ You can see more SMTP plugins here: https://wordpress.org/plugins/search/smtp/


1

Never mind, find my error.. just need to assign to the function associate array according to the body structure. sometime all u need is just to write things down:)


1

Try looking at this: How to store username and password to API in wordpress option DB? tl;dr: use OAuth, if the web service supports it, or if the web server is run by yoursefl Store the data encrypted in the database, using as encryption wordpress installation-wide unique keys, ad you can see in the link.


1

You can trigger your web-service-calling code by using this: http://codex.wordpress.org/Plugin_API/Action_Reference/publish_post You can add a checkbox using this: http://codex.wordpress.org/Function_Reference/add_meta_box


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

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

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

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