Posted By

ihatetomatoes on 02/28/13


Tagged

wordpress


Versions (?)

WP - Rename custom post types and taxonomies


 / Published in: PHP
 

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

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

  1. SQL query for renaming the posts:
  2.  
  3. UPDATE `wp_posts` SET `post_type` = '<new post type name>' WHERE `post_type` = '<old post type name>';
  4. SQL query for renaming taxonomy:
  5.  
  6. UPDATE `wp_term_taxonomy` SET `taxonomy` = '<new taxonomy name>' WHERE `taxonomy` = '<old taxonomy name>';

Report this snippet  

You need to login to post a comment.