get_attachment_id() only get id of first attached image after post update
i use the code explained here to get id of attached images to a post in a custom post type from $value that contains url of image (images already uploaded & exist in Media Library). the post contains some data and images that users submitted & uploaded via a form. when i publish post for … Read more