The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

0
votes
0answers
16 views

WP set auth cookie using Ajax is not saved to browser

We are creating an external dashboard that uses Wordpress data, obviously, we use WP REST API v2 We want total separation from the traditional WP Dashboard, but we also want to log in user "behind ...
0
votes
0answers
34 views

Creating an event using Events Manager and JSON API

I'm using the JSON API plugin in conjunction with this Events Manager Plugin and I want to create an event using the 'create_post' controller. For example: ...
2
votes
0answers
135 views

Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]

I am using WP REST API Version 2.0-beta7 together with WP OAuth Server version 3.1.91 After authenticating with the User Credentials grant type, a request to ...
0
votes
0answers
14 views

How get multiple custom taxonomy index

Based on this question: Wordpress json api taxonomy index method I use json-api plugin and I have three custom taxonomies. for example: car, phone, and book. I try to get all taxonomy index something ...
0
votes
0answers
21 views

WP Rest API blog with detail page

I've a blog on a other site, and with the WP Rest Api I want to show the excerpts on a other site, with a custom single page. I've made a page_blog.php page where I show the posts, and now I want to ...
0
votes
2answers
316 views

Get WP Navigation Menu from REST API V2

I'm trying to get the navigation menu from JSON response using WP REST API v2 plugin. There is no navigation menu plugin extension for the REST API v2, but only for V1. From codex WordPress Post ...
0
votes
1answer
62 views

PHP calling function within a class

I'm writing my own php class and I have multiple functions within the class. Something like this: class JSON_API_Hello_Controller { public function test_cat(){ global $json_api; ...
0
votes
0answers
37 views

Adding custom fields multi value using json-api

I'm using json-api to create a post with custom fields using query: ...
2
votes
1answer
52 views

Request object for validate_callback

I'm trying to define a new REST Api endpoint based on WP REST API (version 2) and have question relating to what arguments are available to the validate_callback and sanitize_callback. Is the Request ...
0
votes
0answers
20 views

Do you see any problems (mainly security-related) with how I've used wp_ajax_* actions?

I am writing a Wordpress plugin that will allow logged in users to manage a specific resources via WP admin interface. These resources should then be made available to an Android app, but only users ...
0
votes
1answer
440 views

WP REST API v2. filters doesn't work

I'm using WP REST API v2 to get posts. When I tried to open localhost/wp-json/wp/v2/posts in my browser I got json with all my posts. I tried to open ...
0
votes
0answers
93 views

selfhosted site, slow REST API-calls

I'm using Wordpress REST API to access some posts from an app were creating, but the api-calls are really slow! if i'm using the domain in the call like this: ...
0
votes
1answer
248 views

WP REST API Access-Control-Allow-Origin response is cached

I have an AngularJS site that is pulling in posts from WordPress via the plugin "WP REST API (WP API)". I am testing a site on both dev and staging subdomains, and the WP API works on both. However, ...
0
votes
1answer
199 views

multi-language multi-site with REST API

I am creating a site with multiple sub-sites that should support multiple languages and be queryable with a REST API. The site itself is mostly a CMS with various pages and maybe some posts for ...
0
votes
1answer
146 views

get content from json api to post

i am trying to get post from json api from a non wordpress site and i want to post the content to my wordpress site. currently trying with https://wordpress.org/plugins/json-api/ above plugin ...
0
votes
0answers
40 views

How to view W3 Total Cache for testing?

I've attempted to cache JSON endpoints in WordPress by following this post: http://wordpress.stackexchange.com/a/115384 // Modify the output buffer callbacks of W3 Total Cache to work with the JSON ...
1
vote
4answers
1k views

WP REST API fetch posts from post type

How can I get all the posts from a specific custom post type with WP REST API (either v1 or v2)? I'm very new to this and trying to understand how to do that. I am currently using WP REST API v2 and ...
0
votes
0answers
92 views

PHP > Scheduled Tasks > Sending daily email with dynamic API variables

I'm trying to write a PHP cron job that would call an API, return a set of numerical variables, calculate a second set of variables, and send an email to selected recipients with those variables ...
0
votes
0answers
73 views

How to get data from external api into wordprss post/page

how can i use an api into WordPress post i want to use the data from http://www.xmlsoccer.com/ its ip is on xml data also i want to add multyply apis on one single post if it is possible is there ...
0
votes
1answer
80 views

Best way to retrieve data in custom api extended from wp-api

I have extended WP API plugin to provide an API which can process documents. Routes public function register_routes($routes) { $documents_routes = array( '/v1/documents' => array( ...
0
votes
1answer
191 views

WP REST API returns post image URL with double backslashes

I'm trying to create a mobile application that use WordPress as a backend CMS, i was able to get the JSON output using WP REST API and reuse what i need from the output in my application, but i have a ...
0
votes
0answers
84 views

Create post with JSON API when not logged in

I have recently started working with WordPress & had my first task using JSON API. Now I know that after getting nonce from get_nonce method, I can create post but it is only possible if I am ...
0
votes
0answers
55 views

how to create new posts , edit_post , delete post and get articals from other site by using JSON API plugin in wordpress.?

I am developing an application to publish articles in Wordpress via JSON API, I need to take a picture with send the create new_post,edit_post and delete_post how can I do this with json api plugin in ...
2
votes
1answer
437 views

Add custom parameters to JSON API search query?

I am using JSON API plugin to query wordpress from a mobile app. Currently I have a theme on my wordpress site which works as a directory returning "near me" results when a search is made. This is ...
0
votes
1answer
69 views

JSON API - search by custom taxonomy

I am trying to get the posts base on some parameters. My JSON API query is as follow. http://www.example.com/api/get_posts/?post_type=job_listing&page=10&count=5/ Here is my JSON result for ...
0
votes
0answers
32 views

Output API response on admin_notices within user_register hook

I am using the hook user_register to execute a function that makes a couple of api calls to do extra stuff on a remote site when a user is created from my wordpress backend. The api returns a response ...
0
votes
1answer
40 views

wp_query - show pages that have parent defined

Can I achieve this with wp_query? I only want to get pages that have parent selected. I'm using JSON API plugin and need to make a http request - would this be possible with url wp query also? For ...
1
vote
0answers
41 views

Include related custom fields from one post type in another post type's JSON feed

I have a custom post type called Offers, and in this post type is a custom field called Store, which is a relationship field type to another custom post type Stores. This has been created using the ...
0
votes
1answer
94 views

Json api does not return all metadata

I am using this plugin https://wordpress.org/plugins/json-api/ to create a new entry is saved correctly in the database all the wp_postmeta customfield table, but when you run ...
3
votes
0answers
225 views

Updating Post Meta with Backbone and the REST API

I'm getting started with a project that is making use of Backbone and the WP REST API, but I"m having a little trouble. Using the built in API JS for models and collections allows me to pretty easily ...
0
votes
1answer
217 views

JSON API Plugin not showing Attachments id reused

First of all, I am talking about this plugin: https://wordpress.org/plugins/json-api/ So now regarding my problem: The plugin is working fine and without any problems. All attachments are showen for ...
3
votes
1answer
509 views

Show popular post in another php website via WP REST JSON API

I need to show popular & recent posts in another php web site under the same domain. example: domain.com -> main website (php, mysql) domain.com/blog -> wordpress blog Need to show popular, ...
0
votes
0answers
275 views

Wordpress JSON API - Prev Post / Next Post using Ajax

I am using Wordpress JSON API to pull data from posts and display it via ajax on a click event. I would like to an include a .next & .previous link which will rerun the ajax request replacing the ...
0
votes
1answer
364 views

WP JSON API meta_query not working

In the code example below I'm using the the post title (name) as the field to store the email address while the password is in a custom field. The following query will pull the correct user but it ...
1
vote
0answers
2k views

Wordpress wp-json API - Custom Post Type returns 403

I've been trying for a full day to get a really basic install of the WP-API to answer to a custom post type (in this case called 'transactions'). The post type is set up and fully public, and it's ...
1
vote
0answers
336 views

Can you use a WordPress permalink to get a post with the JSON API?

New to the WordPress JSON API (https://wordpress.org/plugins/json-rest-api/) and what I'm trying to do is get a post using it's permalink, not the id. So for instance, it would be ...
0
votes
0answers
127 views

Trying to use and understand JSON API and get_posts

Me and my friend are breaking our heads to implement something. We are trying to get the results similar to function get_posts from JSON API ...
1
vote
0answers
459 views

mod_rewrite doesn't work as I want even with JSON API Plugin disabled

I've been asked to upgrade the codebase of a Wordpress website, which exposes a small set of APIs using JSON API plugin. The Wordpress installation is not in the root, but in a secondary folder: ...
1
vote
1answer
919 views

Querying A Post That Includes Two Taxonomies Using JSON Rest API

I'm using the JSON Rest API plugin (https://wordpress.org/plugins/json-rest-api/). I have two custom taxonomies with one term each: Inner Part Categories Eye Symptoms Categories (Man) Broken Bone ...
0
votes
1answer
1k views

Getting Custom Fields from WordPress JSON API

I'm using the plugin (https://github.com/WP-API/WP-API) to get JSON Data from WordPress, but I'm stuck on something, I've a custom post type, events, with which many custom fields is attached to, such ...
1
vote
1answer
1k views

Get subcategories with JSON API plugin

How to get subcategories with JSON API wordpress plugin? I see how to get categories, but what is the way to get categories with subcategories at the same time? How should I modify the existing code? ...
-1
votes
1answer
502 views

WP API DELETE request from jquery ajax [closed]

I'm using the rest json API plugin http://wp-api.org/ to create a small application. I'm trying to delete a custom post entry with jquery ajax but something is missing, here is my code: ... //make ...
0
votes
1answer
53 views

Fetch CSS of posts

I am using JSON API plugin for fetching recent posts.Now I want to show them in my web as they are being displayed in wordpress.How can i get css of wordpress theme?
0
votes
1answer
249 views

Get JSON from self hosted wordpress site

I am very new to wordpress so this may seem basic. I have a NON-WordPress website in which I would like to consume various blogs (via category/tags etc etc) from my WordPress site. Currently I am ...
1
vote
2answers
333 views

Hook Into the_content Filter For JSON API Only

I'm trying to figure out a way to remove the shortcodes from my JSON output which I'm using the Wordpress JSON API for. I need to remove the shortcodes from the content before do_shortcode is applied ...
0
votes
0answers
153 views

JSON Feed on my wordpress Blog

I have just installed 2 plugins for JSON feed for my blog as I need to develop an Android Application for the same. Plugins used : 1.) http://wordpress.org/plugins/feed-json/ 2.) ...
1
vote
2answers
1k views

WP-API restfull JSON and post meta?

OK I'm using this plugin: https://github.com/WP-API/WP-API/ to turn my site into a rest full API and it's working great.. Then I'm using ths plugin to add custom post meta: ...
0
votes
0answers
268 views

how build custom json api controller for all registered users

i use the json api! from wordpress. And try to build an own json api controller, i want return all registered users with the following controller but thats not give an array with all users, ...
0
votes
1answer
603 views

Wordpress JSON API restrict to specific domain

I have installed and activated the Wordpress JSON API (http://wordpress.org/plugins/json-api) in my self hosted WP site. Now my site content is open to the world via this API in JSON format. But, I ...
0
votes
0answers
759 views

Plugin that uses AngularJS tutorial

I plan to make a plugin which should act as Backend for angularjs. And I search for a good tutorial for the implementation steps, but till now I did not found any good. Making some researches I found ...