• Resolved ced64k

    (@ced64k)


    Hi,

    Is it possible to retrieve multiple featured images via WordPress REST API ?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Roman Bauer

    (@roba87)

    I have not dealt much with the WordPress REST API so far!

    The IDs of the images you add to a post are saved as metadata for that post. The meta key used for this is “_smfi”. For each image added, an entry with the meta key “_smfi” is created. Each entry with this meta key has as value an associative array with the array key “img_id”.

    You could certainly use the WordPress REST API to query the metadata and find out the corresponding IDs of the multiple featured images. Then you could use the IDs to query the image information from WordPress (such as the URL).

    The plugin currently does not offers simplified interactions with the WordPress REST API. If there is enough demand, I would implement it.

    • This reply was modified 6 months, 3 weeks ago by Roman Bauer.
    • This reply was modified 6 months, 3 weeks ago by Roman Bauer.
    • This reply was modified 6 months, 3 weeks ago by Roman Bauer.
    • This reply was modified 6 months, 3 weeks ago by Roman Bauer.
Viewing 1 replies (of 1 total)
  • The topic ‘REST API’ is closed to new replies.