H
H
HAbRAhabp2016-11-28 22:46:41
RESTful API
HAbRAhabp, 2016-11-28 22:46:41

How to add Embed attachments to WP Rest API 2.0 response?

I am using WP REST API 2.0for REST API. How can I get attachments (wp:attachment) in an object _embedded? I added a parameter ?_embedbut still no attachments. Full url: I expect something like this :/wp-json/wp/v2/posts?_embed
edGeh.png
VQbQ8.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question