Forums

Attach images to post

  1. Hi,
    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?

  2. +1

    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.

  3. +1

    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.

  4. 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

  5. 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

  6. 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.

    1. Create a new post
    2. Upload the images you want, make sure they are inserted into the post contents
    3. Upload the post as a draft
    4. The images should be attached by now, replace the images by the gallery code
    5. Publish
  7. Thank you Jorge. I'll try that.

Topic Closed

This topic has been closed to new replies.


About this Topic

Tags

No tags yet.