Title: Adding &quot;attachment&quot; post_type to a post
Last modified: August 19, 2016

---

# Adding "attachment" post_type to a post

 *  [Craig Lambie](https://wordpress.org/support/users/cclambie/)
 * (@cclambie)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/adding-attachment-post_type-to-a-post/)
 * Hi WordPressers,
 * I am hoping you can help.
 * When I have created a page before today, an entry is made in the wp_posts table
   that has the post_type “attachment” which indicates the Media that is attached
   to it.
    The theme then uses this record to create timthumb.php images to represent
   the page visually, which is great.
 * However for some reason it stopped doing that with one of my pages, and I can’t
   see why. I have deleted the page and started again, but it is the same issue.
 * Any thoughts on how I could fix this?
 * Theme “fotofolio”
    WP v3.1
 * Thanks
 * C

The topic ‘Adding "attachment" post_type to a post’ is closed to new replies.

## Tags

 * [get_results](https://wordpress.org/support/topic-tag/get_results/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Craig Lambie](https://wordpress.org/support/users/cclambie/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/adding-attachment-post_type-to-a-post/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
