Skip Navigation

[Resolved] Only some of my custom post types are being stored with wpcf- others are not

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 7 replies, has 1 voice.

Last updated by Minesh 1 week, 6 days ago.

Assisted by: Minesh.

Author
Posts
#2858660
Screenshot 2026-04-28 at 09.29.49.png
Screenshot 2026-04-28 at 09.26.52.png
Screenshot 2026-04-28 at 09.25.56.png

Tell us what you are trying to do?

I am trying to clean up for consistency. Having some CPTs with a wpcf- prefix and some without makes it difficult to program with.

Am I safe to correct the one CPT that has no wpcf- prefix or will that break if I edit it in the future?

Is there any documentation that you are following?

I can not find documentation for where there is an option to turn on or off adding the wpcf- prefix to CPT slugs in the database.

Is there a similar example that we can see?

Attached are two screenshots from search results in phpMyAdmin

What is the link to your site?

Site is under development, so not viewable.

#2858676

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As you are trying to delete the unwanted custom fields or database cleanup - I strongly suggest that before performaing any action:

*** Please make a FULL BACKUP of your database and website.***

Once you have full backup of your databse - then try to cleanup the unwanted fields and make sure first that you are not using those fields with your content tepmlates/views/archives or anywhere.

#2858696

I am actively using all custom post types. My issue is that for some reason one has no wpcf- prefix, while the others do. This is causing issues with custom programming that references the CPTs.

What I want to know is what setting changed Members CPT to drop the wpcf- prefix. I want it to continue going forward for consistency.

If there were no settings, and this is a weird fluke, can I update the database? Keeping in mind that there may be edits or additions to the CPT in the future.

#2858701

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - there is no such automatic options.

If you have created custom fields using Toolset Types plugin then it will have 'wpcf-" prefix. If you have created those custom fields manually or its added by third party plugins or some other way, it not Toolet Types custom field as Custom fields created using Toolset Types always has "wpcf-" prefix.

You will have to interect with database and delete the unwanted custom fields.

#2858706

Sorry to contradict you, but the Member CPT was created in Toolset, and its records are being stored without a wpcf- prefix.

What is my best course of action at this point? Can I edit the database to correctly use wpcf- prefixes? Or, do I have a more serious problem in that Toolset has malfunctioned and I need to get to the bottom of that issue?

#2858708

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry to contradict you, but the Member CPT was created in Toolset, and its records are being stored without a wpcf- prefix.
==>
That is really strange. I dont think so, even if you try to create a new test site and install Toolset Types plugin and try to create custom fields, for instance you created custom field with slug "price" (without quotes) in GUI it will show the "price" but when you check the database the custom field actually stored as "wpcf-price".

#2858717

I don't know how it happened. I noticed that when I was writing plugins to reference the fields, I found some one way and others another, despite the documentation.

Going forward, I want to correct the issue. I want to correct the database records.

What is my best course of action? The current records in the CPT can be deleted (still under development and testing). Do I need to recreate the CPT or is there another course of action?

I am looking to activate WPML, so I don't want to have more issues down the line.

#2858905

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

If its test site and you have test content then you should go ahead and delete the content/posts.

Make sure you have right custom fields/custom field group assigned to your desired post type. Then try to create one/two posts and check the database.