Return to Snippet

Revision: 62535
at February 28, 2013 20:57 by ihatetomatoes


Initial Code
SQL query for renaming the posts:

UPDATE  `wp_posts` SET  `post_type` =  '<new post type name>' WHERE  `post_type` = '<old post type name>';
SQL query for renaming taxonomy:

UPDATE  `wp_term_taxonomy` SET  `taxonomy` =  '<new taxonomy name>' WHERE  `taxonomy` = '<old taxonomy name>';

Initial URL
http://wordpress.stackexchange.com/questions/1037/renaming-custom-post-types-and-taxonomies

Initial Description
Use below SQL code and replace references within the theme files.

Initial Title
WP - Rename custom post types and taxonomies

Initial Tags
wordpress

Initial Language
PHP