Title: Migrating posts between Custom Posts (in Magic Fields)
Last modified: August 19, 2016

---

# Migrating posts between Custom Posts (in Magic Fields)

 *  Resolved [jdhobbs](https://wordpress.org/support/users/jdhobbs/)
 * (@jdhobbs)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/migrating-posts-between-custom-posts-in-magic-fields/)
 * This post is simply some help for if you ever need to move a post between Custom
   Post Templates; a likely scenario is that the client has made a bunch of posts
   in the wrong place.
 * It requires some access to the database (via. PHPmyAdmin), but it’s a much quicker
   alternative to deleting the old and creating new posts within the correct Custom
   Post Template, and manually migrating the content.
    - Go into the Custom Post area that the offending post is currently located 
      and hover over the title…look at the URL and note down the post’s ID
    - Go into Magic Fields > Write Panels. Hover over one of the links to see the
      URL, you’ll see part which is ‘custom-write-panel-id’…get the ID’s of the 
      two Custom Post Templates you want to migrate to -> from (e.g. 3 -> 5)
    - Go into PHPMyAdmin and into your PostMeta table (default: wp_postmeta) and
      run an SQL query like this:
       `SELECT * FROM 'wp_postmeta' WHERE 'post_id' 
      = #post_id# AND 'meta_key' = '_mf_write_panel_id'`
    - Run it and it’ll return the row you need to edit.
    - Change the meta_value to the new ID
 * [http://wordpress.org/extend/plugins/magic-fields/](http://wordpress.org/extend/plugins/magic-fields/)

The topic ‘Migrating posts between Custom Posts (in Magic Fields)’ is closed to 
new replies.

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [jdhobbs](https://wordpress.org/support/users/jdhobbs/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/migrating-posts-between-custom-posts-in-magic-fields/)
 * Status: resolved