node-wpapi
node-wpapi copied to clipboard
An isomorphic JavaScript client for the WordPress REST API
I was trying to enable the `Auto-Discovery` with `var apiPromise = WPAPI.discover( 'http://my-site.com' );`. I have added the `send_header` function to `functions.php` under the `theme` folder. ``` add_action( 'send_headers', function()...
`npm install --save wpapi ` command doesnt even install all necessary files & folders, for example **wpapi/superagent** folder.
Hi, Thanks for this wonderful API, I am trying to create post with ACF field values, but API creates the post with title and content only and skips the ACF...
For example, trying to post on a multisite that doesn't exist gives the error: ``` Not Found at Request.Object..Request.callback (node_modules/superagent/lib/node/index.js:804:15) at IncomingMessage.parser (node_modules/superagent/lib/node/index.js:1036:18) ``` I've also gotten completely useless JSON.parse...
`SyntaxError: Invalid regular expression: /^[a-zA-Z0-9-_]+)$/: Unmatched ')' at new RegExp () at reduceRouteComponents (C:\project\node_modules\wpapi\lib\route-tree.js:83:3) at Array.reduce () at reduceRouteTree (C:\project\node_modules\wpapi\lib\route-tree.js:182:18) at C:\project\node_modules\wpapi\lib\util\object-reduce.js:25:20 at Array.reduce () at module.exports (C:\project\node_modules\wpapi\lib\util\object-reduce.js:24:3) at buildRouteTree...
I'm not a pro, and need a little help with this. I'm trying to use this package for a Nuxt site with it being hosted on Vercel. Within the serverless...
Tried using node-wpapi on a website which only supports ipv6 and it returns: `code: 'ETIMEDOUT',`
Hi, since updating to wordpress 5.9 (or 5.9.1, can't be sure) the api is not able to _bootstrap with the endpoints from the json_ due to a regex problem. The...
Suddenly I'm getting this error: **Error: .field(name, val) val can not be empty** It comes from `wp.media().file("test.jpg").create` function: ``` wp.media().file("test.jpg").create({ title: "Media Title" }).then(media => { return wp.posts().create({ title: "Hi",...
I think this is related to https://github.com/WP-API/node-wpapi/issues/476 ``` SyntaxError: Invalid regular expression: /stk_design_library(?:/: Unterminated group at new RegExp () at reduceRouteComponents (/var/www/node_modules/wpapi/lib/route-tree.js:83:3) at Array.reduce () at reduceRouteTree (/var/www/node_modules/wpapi/lib/route-tree.js:182:18) at /var/www/node_modules/wpapi/lib/util/object-reduce.js:25:20...