Categories
wp-cli

Change post type

wp db query "UPDATE  `wp_posts` SET  `post_type` =  'new-cpt-post' WHERE  `post_type` = 'old-cpt-post';"

Leave a Reply

Your email address will not be published. Required fields are marked *