Can't add post with featured image using only XML-RPC
|Reported by:||rvavruch||Owned by:||rvavruch|
|Cc:||rvavruch, cfinke, jbernal@…, marko@…, dan@…, isaackeyet, screenwavemedia, max@…|
AFAIK it is not possible to add a new post with a featured image using only XML-RPC. This is because the way to add a featured image with XML-RPC requires the wp_posts.id of the image to be used.
I have attached a patch based on trunk rev. 15775 which returns that id when performing a metaWeblog.newMediaObject. This id can then be used in the custom_fields of a metaWeblog.newPost to set the featured image (or _thumbnail_id).
Change History (24)
- Cc rvavruch added
- Owner set to rvavruch
- Status changed from new to assigned
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release