Support

Account

Home Forums General Issues Problem with changing CPT post type key Reply To: Problem with changing CPT post type key

  • yes there is, someone else commented on this but it was marked as spam because they included a spammy link. It’s sad when people who actually have knowledge post useful information only because they want to inject a link to some unrelated site. In all likelihood these people are now generating what appears to be useful information with AI. I do not put up with spam here.

    Anyway

    UPDATE wp_posts SET post_type = 'dog-something' WHERE post_type = 'dog'

    This should be done with caution, like backing up your DB first.

    Yes, you should plan ahead. Test a little if you want, but I would not change a CPT or custom Taxonomy name after live content is added. Especially if there is a lot of posts.