If you have already declared custom post types and taxonomy in PHP you can use Toolset Types to manage them.
Converting custom post types and taxonomy
To convert custom post types and taxonomies you have to:
- Remove the PHP that declared these custom types. Normally, you would remove them from
functions.php
in the theme. Once you do this, all your custom data will appear to have vanished. Do not worry. It just is not shown. - Add it using Types. Make sure that you use the exact same slug. The description can be different but the slug is crucial. If it is different, the old content will not be shown.
Now you should see all of your content.
Converting custom fields
To convert custom fields you have to:
- Create custom field groups. You should leave them blank (without adding any fields). This is because we will go and add the existing fields to them.
- Go to Toolset → Custom Fields and click the Post Field Control button. On the Post Field Control page, find the fields you are interested in. On each field’s row click on Change assignment and, in the pop-up dialog box that appears, select the corresponding group you created in the first step. Then, for each one of the desired fields, click on the Change type link and select the option you find appropriate.
Your custom fields will now be under Types control.
Related topics
- Using Custom Fields vs. Taxonomy
- Conditionally Display Custom Fields in WordPress Backend
- Adding a Custom Taxonomy to WooCommerce Products
- Using Post Reference Field to Set-Up One-to-Many Relationships
- How Content is Displayed
- Adding Custom Posts
- When and Why You Should Use Custom Types
- Creating a Custom Taxonomy
- Creating Custom Fields
- Creating a Custom Post Type
- What Are Custom Types and How They Work
- Limitations on HTML Content in Post Fields