Hi. I want to get custom fields from a post. How can I add them to WP API?
]]>Hi,
[WP-API 1.0.3]
I can run GET requests, now I’d like to POST an article.
The URL is https://aaa.bbb.ccc/?wpapi=/posts and the request type is POST. It returns 200 but the new article does not appear anywhere.
Should there be a step where the API authenticates me first ?
Cheers,
Guy
Great Plugin. Thank you. If the developer or anybody else is interested, please have a look at a small extension I have made to one of the includes in order to send JSonP document besides JSon documents. Would be great if the official version could be improved by this or something similar. I think JSonP is essential in order to support cross-side-scripting.
Check this: https://pastebin.com/eJnurqC5
]]>That will be very useful!
Thanks!
I forked a copy of the plugin here:
https://github.com/jbuchbinder/wp-api
I have started adding features, including the ability to select posts by category stub names (instead of having to process everything on the client side — useful for large sites).
]]>Hello,
this plugin is nice, exactly what i need, thanx 4 your work!
But (with last 3.5 version of WordPress?) it’s seems there is a problem with some functions:
when i do:
/?wpapi=get_posts&dev=1&count=2&page=1
(all is ok without &count=2&page=1)
i have at the end of json output:
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/user/domain.ext/wp-content/plugins/wp-api/includes/get_posts.php:1229) in <b>/home/user/domain.ext/wp-content/plugins/wp-api/includes/get_posts.php</b> on line <b>1361</b><br />
Any report of that?
Is there a fix?
Hi, thanks for the great plugin.
I am trying to find a way to retrieve information via jsonp with your plugin but unfortunately it doesn’t seem working.
Can you please help me with guiding what do I need to do?
$.ajax({
url: ‘https://www.domain.com/?wpapi=get_posts&dev=1’,
async: false,
jsonpCallback: ‘jsonCallback’,
contentType: “application/json”,
timeout: 15000,
……
Thank you in advance.
]]>how do you use the comments method to submit comments?
]]>I have used Advance custom field plugin for many different input field,
Now i have to send data of my wordpress backend to one IPHONE app to send content in JSON.
so by default it send default field as shown in screenshot.
How can i send ACF fields values with post’s json content..
]]>