Vimeo Froogaloop API, working in Fiddle but not WP

From: https://developer.vimeo.com/player/js-api#universal-event-spec If you’re embedding and controlling multiple players on a page or using our JS API library (Froogaloop), you should give each player a player_id that matches the id of the iframe element. http://player.vimeo.com/video/VIDEO_ID?api=1&player_id=vimeoplayer You may need to add the player_id query parameter to the src definition.

Shortcode API: How to get name that matched shortcode RegEx?

I think you just forgot to run the shortcodes [foo a=”b”] and [bar a=”c”] through the do_shortcode filter: do_shortcode( ‘[foo a=”b”] [bar a=”c”]’ ) The output of the_content() is filtered through the do_shortcode, so you can just add it into your editor instead. Running your code I get the following output for the $arguments dump: … Read more

I have to post data by AJAX in wordpress to another Website

This will not work due to the “same-origin policy” unless that server you are trying to reach specifically allows these type of requests with something like Access-Control-Allow-Origin: *. You can read the documentation on MDN in order to get more information about this topic. From my tests, the server will also need another header configured … Read more

Why aren’t tags and categories added in post request to WP Rest API

You are using name in your terms. In default, try to use the existing term id ( in your case, cat ID and tag ID ). If you see https://plugins.trac.wordpress.org/browser/rest-api/trunk/lib/endpoints/class-wp-rest-posts-controller.php#L918 they will handle your term with sanitize them into non-negative integer using absint. I hope this help. Here example code to hook rest_insert_{$this->post_type} to create … Read more

Develop REST API using WordPress for Android app [closed]

Hopefully someone will extend on my answer…. The critical part of the rest API that is already in core is the registration and routing of endpoints which should look like (taken from http://v2.wp-api.org/extending/adding/) `/** * Grab latest post title by an author! * * @param array $data Options for the function. * @return string|null Post … Read more

How to avoid loading wp-load.php from external php scripts?

Pretty much wp-load.php is the only way to go. I don’t think there is really another way to load the WordPress functions safely… You can account for path variations by recursively including it from any file where you need it though… eg. function file_find_require($file,$folder=null) { if ($folder === null) {$folder = dirname(__FILE__);} $path = $folder.DIRECTORY_SEPARATOR.$file; … Read more