WP - Rename custom post types and taxonomies


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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>';

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

Report this snippet


Comments


You need to login to view comments.