Home › Forums › General Issues › Including ACF data for media › Reply To: Including ACF data for media
While “Media” is definitely of post type “attachment” there is no route at /wp-json/wp/v2/attachment/
When submitting a GET
to /wp-json/wp/v2/media/
, an empty array of acf
is shown for each object. Even with fields populated, no data is returned. In addition, a POST
to a specific media item at /wp-json/wp/v2/media/<id>
to update a custom field does not work in the same way it does for other post types/custom post types.
Is there an alternate method available of updating data in ACF fields groups shown on media/attachments?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.