Answer the question
In order to leave comments, you need to log in
How to add Embed attachments to WP Rest API 2.0 response?
I am using WP REST API 2.0
for REST API. How can I get attachments (wp:attachment) in an object _embedded
? I added a parameter ?_embed
but still no attachments. Full url:
I expect something like this :/wp-json/wp/v2/posts?_embed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question