wordpress-rest-api Questions
1
Hi I have created a custom post type using pods io. Whenever I hit the rest API for a custom post type, I get data for all the posts created using that post type. But what I need from rest API is t...
Shive asked 28/6, 2017 at 8:2
3
Solved
I'm having an issue with basic authentication.
Trying to send a GET request with Postman (chrome plugin) using the following url:
http://_MY_WEBSITE_URL_/wp-json/wp/v2/users/3
The username and t...
Skimp asked 7/4, 2016 at 8:43
3
I have a WordPress website which I use just to populate blog posts and some private posts under custom post types. In another website, I am using the REST API to display the posts. If I use softwar...
Viperine asked 13/2, 2019 at 1:13
2
Solved
I am trying to setup reverse proxy with wordpress and exclude couple of paths. My exclude rules work for admin, includes, ..etc but it doesn't work for /wp-json/. I am suspecting it is because of t...
Thatcher asked 27/11, 2018 at 20:23
5
I have removed unwanted data by unset($data->data['field_name']) from json output. For this I am using wordpress filter rest_prepare_.
But how we remove _links object from JSON output?
Cheese asked 11/7, 2017 at 7:14
1
I used the CPT to create a post type UserQuestion with a few fields, such as ip_data. I want to be able to create one of this posts through API. So I looked into WP REST API .
However, the API off...
Notions asked 22/2, 2017 at 7:9
2
Solved
I am creating an android app that displays WordPress posts. At the moment, the app is displaying the title and subtitle (3 lines of text) but, it doesn't show the featured image. I also would love ...
Dynatron asked 20/9, 2018 at 15:9
4
How would you go about hosting / deploying a React application with WordPress on the backend? I've been using the WP Rest API plugin and that API seems to need to be hosted. Would I also have to ho...
Chez asked 27/10, 2017 at 1:7
1
I created this small script to create wordpres posts, using Basic Auth, and it works. The problem is when I try to assign multiple categories to a post.
The reference is pretty vague. It says that...
Parmenides asked 28/4, 2017 at 10:13
1
We are using WP JWT Auth plugin to login user to WordPress from wp rest API. WP JWT Auth plugin requires a password to get the token, now when we are integrating facebook login, I am not sure how t...
Brathwaite asked 10/7, 2018 at 22:18
2
Solved
I am building a password change form using the WordPress REST API. The user enters a new password which is then submitted via AJAX to a custom endpoint which does this:
$userID = get_current_user_...
Neurogram asked 31/7, 2017 at 12:49
2
I am using the following to get posts
http://demo.wp-api.org/wp-json/wp/v2/posts
I the max limit on posts is 100 per request.
So I would have to make multiple requests to get all posts.
How c...
Coolidge asked 29/1, 2018 at 14:21
1
Solved
I have a blog hosted on WordPress.com. When I try to make a GET request to retrieve the posts I get a 'Not Found' html page.
https://alexkojin.wordpress.com/wp-json/wp/v2/posts
I know about...
Antonantone asked 2/2, 2018 at 19:52
0
I am working on Wp Rest API. I want to retrieve posts from WordPress site that result to display in another PHP site. I have created a rest url "http://sitename.com/wp-json/wp/v2/posts" like ...
Nammu asked 4/12, 2017 at 11:11
1
Solved
I am using the wpapi npm module to interface with the WP rest api in a node app. I am authenticated and my user created some draft posts. When I go to the dashboard with the same credentials, I can...
Mawkish asked 30/6, 2017 at 6:53
4
Solved
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 a...
Charitycharivari asked 4/9, 2015 at 8:53
1
I am using the Post Types Order plugin to re-order posts on WP Admin.
Is there a way to fetch WP REST API by that order?
/wp-json/wp/v2/posts?orderby ??
WP Rest Api docs only shows order by:
da...
Abijah asked 29/6, 2016 at 13:13
1
Solved
I am trying to grab posts and order them by date, in a descending order.
I am talking about this API: https://github.com/WP-API/WP-API
I tried:
http://url.com/json/wp-json/wp/v2/posts?filter[ord...
Marmite asked 12/4, 2016 at 11:1
1
Solved
How do I correctly create a custom post type record through the wp rest api v2 with custom fields? Unable to create custom fields or update them.
I have installed the superlist and superlist-child...
Malamud asked 20/2, 2016 at 5:48
© 2022 - 2024 — McMap. All rights reserved.