Relative Content

Tag Archive for phpwordpress-rest-api

Posting Feature Image with WordPress

i m struggling solving this issue since a while. I even hired someone without any success.
I want to remotely publish a post+its feature image. Posting is working fine, but transfering the image is failing.
error is

My attachments on wp_mail() are being send with .tmp extension

I’m bulding a form widget with upload field, where the form data is sent via POST request through Wordpress REST_API. I’m getting the post response in PHP; composing the mail data and sending through wp_mail() function. But can’t make the upload file be sent with the proper file name and file extension, only the temporary name and .tpm extension.