PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to get the post id of the attachment post created by Post Image field?

  1. I have a form which uses a Post Image field to upload an image, which I need to parent to another existing post.

    When doing this, there are 2 posts created, one named Untitled-# which is set as draft and set as the parent of the second one, of attachment type.

    To get the ID of the parent post you can use the $entry['post_id'] but how would you get the ID of the attachment post?

    Thank you,
    Anton

    Posted 12 years ago on Thursday January 5, 2012 | Permalink