Title: problems adding post attachments
Last modified: August 19, 2016

---

# problems adding post attachments

 *  [kmcadams](https://wordpress.org/support/users/kmcadams/)
 * (@kmcadams)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problems-adding-post-attachments/)
 * I am programmatically inserting posts and attaching an image to the post.
 * on the index page I can see the post title however, i dont see the images themselves
   in my index page when i view – only the post title. i have added the following
   in addition to using the thecontent filter wp_get_attachment_url($post->ID); ?
   >”><?php echo wp_get_attachment_image($post->ID, ‘medium’)
 * when i look at the post in the dashboard I see the image attached in the gallery
   
   when i go to the media library i see the image when i go to “edit media” and 
   click on the file url i see the image in the media library however the file name
   is not populated and when i click the edit image button i get Image data does
   not exist. Please re-upload the image.. the image inserting does not create an
   the thumbnails small medium or full view
 * there may be some meta data missing however this is poorly documentted and i 
   can not locate a good description of the post metadata i need to add for attachments
 * pointers appreciated

The topic ‘problems adding post attachments’ is closed to new replies.

## Tags

 * [media](https://wordpress.org/support/topic-tag/media/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [kmcadams](https://wordpress.org/support/users/kmcadams/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/problems-adding-post-attachments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
