Skip Navigation

[Resolved] Delete CPT

This thread is resolved. Here is a description of the problem and solution.

Problem:

If I delete a CPT does the content or posts get deleted with it? Or are the stored somewhere else?

Solution:

No, delete custom post type won't delete custom posts, all custom posts data are saved in your database table "wp_posts", so if you restore the custom post type again, you will be able to see those posts again.
Relevant Documentation:

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by jelle-jacobd 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1129386

Hi,

If I delete a CPT does the content or posts get deleted with it? Or are the stored somewhere else?

Thanks.

#1129558

Hi,

No, delete custom post type won't delete custom posts, all custom posts data are saved in your database table "wp_posts", so if you restore the custom post type again, you will be able to see those posts again.

#1129671

Hi Luo,

Thank you. I would like to migrate my CPT and posts from CPTUI to Toolset Types. Whats the best way of doing this? Maybe you have a step by step guide or tutorial available?

#1129694

Here is the document about "How do I convert existing custom types and fields to Types control"
https://toolset.com/faq/how-do-i-convert-existing-custom-types-and-fields-to-types-control/

For your reference.

#1129883

Thanks that worked as well. Is it possible to add some extra labels? In some cases the label doesn't fit in. F.e. in some cases I need the label without a Capital or first letter in uppercase. If I change the standard labels the menu will also be completely written in lowercase.

Thanks again.

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/add-some-extra-labels-to-post-type/

#1130418

I assume the original question of this ticket has been resolved:
https://toolset.com/forums/topic/delete-cpt/

For the other questions please check the new thread:
https://toolset.com/forums/topic/add-some-extra-labels-to-post-type/

#1131891

My issue is resolved now. Thank you!