Opened 3 years ago
Last modified 3 years ago
#58034 new feature request
Post API can't get image URL on Endpoint
| Reported by: | nodeweb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | REST API | Version: | 6.2 |
| Severity: | normal | Keywords: | needs-patch 2nd-opinion |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@nodeweb Have you tried using the _embed functionality. So adding
_embed=wp:featuredmediato the request and getting the embedded featured media.