I have a custom post type with over 100 posts. I want to create another custom post type and have the same posts with the same post titles. Is there a simple DB query that will allow me to do this, or am i stuck with having to re-create each post?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
Backup your databaseYou can do this pretty easily. I created a proof-of-concept for you to try out. I would backup the database before running this. Run the pluginConfigure the plugin by setting To run this plugin, you need to be logged in as an administrator. Then, visit: http://yourdomain.com/wp-admin/?duplicate-posts=magic-password
This plugin accounts for the basic post information and its postmeta. It does not account for revisions, auto-drafts, or attachments. You can run similar loops within the foreach loop to duplicate those sub post types. |
||||
|
|