Attach images to post
i am using a theme that relies heavily on the integrated gallery function of Wordpress. Is there a way to (automatically) attach an image uploaded via app to a post i write on the app?
The "desktop" version of Wordpress does it already - why don't you adapt this behavior?
I have a theme that uses galleries in all its posts too. It would be great if the photo upload produced the same results to associate images with each post.
I've only started looking at using the app to help an upcoming client update their site. I had presumed that all the images were automatically added as attachments to the posts as well as being inserted.
I'm sorry but there's now way to do that currently.
I believe the API will support it for WordPress 3.4, and we'll add support for that in the app when it's possible
I've noticed that if you add the images, publish the post and then go back and delete the inserted images they stay attached. Which I think my clients can handle, in case they don't I will just have the images inside the posts auto display:none;
Fingers-crossed for 3.4
Yes, the API currently has a workaround: when you post, it looks for image tags in the post content, and if they match any unattached image, it attaches it to the post.
With that, there's a trick that might work until we can implement it properly.
- Create a new post
- Upload the images you want, make sure they are inserted into the post contents
- Upload the post as a draft
- The images should be attached by now, replace the images by the gallery code
Thank you Jorge. I'll try that.
This topic has been closed to new replies.