Title: Add attach programatically
Last modified: August 21, 2016

---

# Add attach programatically

 *  [alejandro.moreno.mvd](https://wordpress.org/support/users/alejandromorenomvd/)
 * (@alejandromorenomvd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/add-attach-programatically/)
 * Hi,
    Im a newbie WP developer and need to programatically add an attachment to
   my custom post. I have look your plugin and find the save_metadata method in 
   Attachments class. Can you provide an example of the correct way to call the 
   method and populate the $attachments_meta parameter? Hope that my question are
   clear, Im not a good english spoker 🙂 regards, ale.-
 * [https://wordpress.org/plugins/attachments/](https://wordpress.org/plugins/attachments/)

The topic ‘Add attach programatically’ 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/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [alejandro.moreno.mvd](https://wordpress.org/support/users/alejandromorenomvd/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/add-attach-programatically/)
 * Status: not resolved