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
The topic ‘Migrating posts between Custom Posts (in Magic Fields)’ is closed to new replies.