• wkettler

    (@wkettler)


    if i upload an image during creating a post and add it to the post using wordpress in the browser, an attachment for each image will be created. this enables me to see which images are assigend to a post. furthermore, using the API, it allows me to get all attachments for a post using /wp-json/wp/v2/media?parent=POST_IDActual behavior


    if i create a new post using the app, attach images to the post and publish it, no attachment will be created. it doesnt matter if i upload a new image or using an existing. it happens on the jetpack and wordpress app.

    • This topic was modified 1 year ago by Yui. Reason: doesn't seem to be a mobile app q
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Even if you upload an image to the media library outside of the post editor (media > add new), there will be no reference to the parent post, even though there is an attachment record. Or an image attached to one post can be reused in another with no related attachment. In other words, the attachment record is not a reliable way to find media used in a post.

    Because media can end up on a page through a variety if methods, a reliable way to get all media references will vary from site to site.

    If you feel the WP app is not behaving as it should, find the app you’re using at https://github.com/WordPress-mobile/ and navigate to the correct site. You can raise an issue there about the problem. But please do a search first to ensure the issue is not already raised.

    thabotswana

    (@thabotswana)

    I just tested this on the WordPress app version 23.4 and an attachment post was successfully created when I published a post with a photo.

    Please be aware that attachment posts are not available in the mobile app and must be viewed from wp-admin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘no attachment(s) created when uploading image(s) to a post’ is closed to new replies.