Title: Issues Migrating with Custom Post Types
Last modified: August 20, 2016

---

# Issues Migrating with Custom Post Types

 *  Resolved [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issues-migrating-with-custom-post-types/)
 * Hi There,
 * I’m having trouble after upgrading to both WordPress 3.5 and also the latest 
   version of attachments. Essentially after upgrading to WordPress 3.5, the attachments
   plugin stopped working, and I got a fatal error due to function attachments_get_attachments()
   not being recognised.
 * I assume from reading the documentation that attachments_get_attachments() has
   been discontinued and doesn’t work with WordPress 3.5?
 * I’m not unable to see the attachments panel within the edit post page for my 
   custom post types, but I can see it for normal default posts. Do I need to perform
   a migration of data? If so, please could you let me know how to do this, or where
   the script is please, so that I can get things back up and running.
 * In my media library, items are still assigned to my posts, I just cannot see 
   the attachments panel on the post edit page, and therefore when I use the default
   code you provide to bring out and test the attachments are there, it counts zero.
 * Thanks for your help, in advance!
 * James.
 * [http://wordpress.org/extend/plugins/attachments/](http://wordpress.org/extend/plugins/attachments/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * (@jchristopher)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issues-migrating-with-custom-post-types/#post-3463211)
 * [https://github.com/jchristopher/attachments#upgrade-notice](https://github.com/jchristopher/attachments#upgrade-notice)
 *  Thread Starter [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issues-migrating-with-custom-post-types/#post-3463344)
 * Hi Jonathan, thanks for the quick response. I’ve added the line to the wp-config
   file, but I’m still not seeing the attachments panel within the edit post view
   of my custom post types unfortunately.
 *  Plugin Author [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * (@jchristopher)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issues-migrating-with-custom-post-types/#post-3463368)
 * I’m not sure which line you added to wp-confg. Please read through the documentation
   and based on whether you’d like to use the deprecated version or the new version
   the instructions there fully explain the process. Best of luck.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issues Migrating with Custom Post Types’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/issues-migrating-with-custom-post-types/#post-3463368)
 * Status: resolved