Cloning post types using the Voxel library
Cloning post types or saving them for future use:
A post type that you create with Voxel can consist of many different moving parts.
1. The configuration: Fields, Filters, Settings
2. The templates: Define how a Post of this type looks in front-end. The design utilizes dynamic data from the fields.
4. Taxonomies: A post type can have taxonomy dependencies such as categories, tags or other things.
5. Product types: The post type may be utilizing a product type on that site e.g for booking form.
Now, we have all these dependencies. And we can technically clone the post type by doing a lot of manual work by connecting these different things together.
It’s possible, but this can be a complex task to do manually.
The Voxel Library is designed to export and import post types along with all their dependencies easily.
In the video below, I’m cloning the Places post type and creating another post type in the same site with the name Businesses.
PS: There are certain things to be aware:
1. If you need to do duplication of post types on the same site, the global colors, taxonomies, product types already exist on that site. So you do not have to export/import them again. Taxonomies and product types can be shared between different post types.
2. If you need to do duplication across sites, then you have to export these things aswell, as they won’t exist in the other site.
3. As for global colors, that’s a decision you have to make if you want the end result to be the same visually when moving across sites.