Opened 3 years ago
Last modified 3 years ago
#58034 new feature request
Post API can't get image URL on Endpoint
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.2 |
| Component: | REST API | Keywords: | needs-patch 2nd-opinion |
| Focuses: | Cc: |
Description
We need to add the featured image URL to the endpoint of the POST API
Instead of getting the featured_media id, we should get the attachment URL, which will be better for everyone
Change History (2)
Note: See
TracTickets for help on using
tickets.
@nodeweb Have you tried using the _embed functionality. So adding
_embed=wp:featuredmediato the request and getting the embedded featured media.