Rest API for Media – Caption and Description
-
Hello,
I am using REST API to display the metadata of media items from my library.
There is an unusual occurance that troubles me:
Whenever a media item has no Caption text but a Description text, the rest API displays the Description text also in the Caption field!
I have some media like that on this REST Feed Page, for instance:
https://import.xm-agentur.de/wp-json/wp/v2/media/379804
Even though there is no caption when I open the image in the library, the description’s content is displayed in the caption field.
This occurs on several of my WP installations and I would like to find out how I can bypass it.
All help is appreciated.
Felix from XM
Das Thema „Rest API for Media – Caption and Description“ ist für neue Antworten geschlossen.