@mountainsmoke did you got it to work already?
You just take the wordpress url, append the endpoint (like /wp-json/wp/v2/posts ) and then you append ?fields=id,title,link (with the fields you’d like).
Hi svrooij,
Thank you for your nice plugin but i don’t know whether the plugin can solve this problem or can’t.
This is the response when i get api (WP rest api v2):
….
“title”: {
“rendered”: “Pho – a traditional Vietnamese food”
},
…..
Can i customize the “fields” param to only return “rendered” content without “title”.
Many thanks!
@truongpvuet this is actually a different question. But this plugin doesn’t add fields, apart from my personal opinion about the uselessness of title.rendered. This page describes how to add an extra field with the plaintext value, after that you can select it by using ?fields=id,plaintext