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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.