Title: Programatically create attachtments?
Last modified: August 22, 2016

---

# Programatically create attachtments?

 *  [acarpio-databiz](https://wordpress.org/support/users/acarpio-databiz/)
 * (@acarpio-databiz)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/programatically-create-attachtments/)
 * Your plugin works great for adding attachments when creating/editing posts from
   the admin panel and then display them on my template files.
 * However, I was wondering if it was possible to create attachments programatically
   while creating posts using the wp_insert_post function.
 * Thank you very much!
 * [https://wordpress.org/plugins/attachments/](https://wordpress.org/plugins/attachments/)

The topic ‘Programatically create attachtments?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/attachments_fafafa.svg)
 * [Attachments](https://wordpress.org/plugins/attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/attachments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [acarpio-databiz](https://wordpress.org/support/users/acarpio-databiz/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/programatically-create-attachtments/)
 * Status: not resolved