All Questions

Tagged with
Filter by
Sorted by
Tagged with
19 votes
1 answer
6k views

Using the Rewrite API to Construct a RESTful URL

I'm trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination. Ok so I have 4 ...
kingkool68's user avatar
  • 1,219
10 votes
2 answers
9k views

Query WP REST API v2 by multiple meta keys

Using v2 of the REST API, I'm wanting to query some posts by multiple meta keys. With v1 I was able to format the url like &filter[meta_value][month]=12&[meta_value][year]=2015 and it worked (...
Trevan Hetzel's user avatar
0 votes
0 answers
2k views

AJAX request from Chrome Extension to Wordpress Website

I developed a chrome extension which extract some data from the user visiting page and I want to transmit them to my database by an AJAX call (my website is a basic wordpress website). The point is ...
Tayfun Akaltun's user avatar
5 votes
2 answers
23k views

Is it safe to fix Access-Control-Allow-Origin (CORS origin) errors with a php header directive?

I am trying to show a Formidable Pro Form from a WordPress site to the other. I followed the developer's API and the REST API, but faced a CORS problem. Then I found a suggestion on a forum thread ...
Atef Wagih's user avatar
5 votes
1 answer
5k views

Retrieving pages with multiple tags using REST API

I'm having some difficulty understanding syntax to make a call from my application to the wordpress REST API when it it comes to getting pages that contain multiple tags. I have no problem with doing ...
ndyr's user avatar
  • 151
3 votes
1 answer
168 views

Is there a way I can fetch the WordPress Developer Code References with an API?

I would like to fetch the WordPress functions, methods, classes, and hooks from here: https://developer.wordpress.org/ in JSON format. I know that it is a WordPress site, and that I can use WP API to ...
Aristocles's user avatar
3 votes
1 answer
5k views

How to get the attached gallery in the rest API?

I just added a gallery to my post and want to access its images through the rest API. In the rest API, I can access the attachments of a post. But those attachments have other images, not in the ...
THpubs's user avatar
  • 177
2 votes
1 answer
17k views

Get more than 10 posts in a specific category with the wordpress api

I'm currently building an Ionic app that uses the Wordpress api. I can retrieve posts in a specific category by using the following: // Retrieve filtered data for the categories to show posts. ...
kristofferandreasen's user avatar
2 votes
1 answer
3k views

Headless Wordpress: How to authenticate front end requests?

I am envisioning Wordpress on the back end to work with React.js on the front end like this: Wordpress is installed on http://example.com/api React.js script is loaded into http://example.com/index....
Sean D's user avatar
  • 367
1 vote
1 answer
5k views

"rest_no_route" - Debug error

I am using Wordpress 4.9.5 and I want to create a custom endpoint like the following: <?php add_action('rest_api_init', 'miningRigsRoutes'); function miningRigsRoutes() { register_rest_route(...
Carol.Kar's user avatar
  • 367
0 votes
1 answer
191 views

Developing Themes with React/Angular

I am learning WordPress REST API and ReactJs.I think ReactJS would be a great asset for developing faster themes and plugins.But I have a question.May be I am new to React that's why i am confused ...
Muaz Hesam Musa's user avatar
0 votes
0 answers
477 views

Cannot edit post meta fields with rest API

I am using python to send POST requests to /wp-json/wp/v2/< post type >/< post id >. This successfully updates standard fields such as title, content etc. However I am unable to make any ...
D10001's user avatar
  • 1
0 votes
1 answer
109 views

Multisite functions to communicate with individual site functions

I have a multisite plugin that operates at the network level. It's job is to assign additional roles to different sites across the network. For example, I have three sites. Library Course (LMS) CRM ...
Brent's user avatar
  • 793
0 votes
2 answers
1k views

curl POST work with user meta but not the custom user meta

I created a custom user_meta, but I cant update it via curl. I can do this with user_meta curl --header "Authorization: Basic ACCESS_TOKEN" -X POST -d "description=New description" http://domain.com/...
Yamona's user avatar
  • 278