Toolset plugins offer a built-in import/export functionality, which allows you to transfer what you have built from one website to another.
In our documentation pages, you can also find information on how to import content of an entire site into WordPress.
When you ask for help or report issues, make sure to give us some information about the data that you import/export.
Problem: I have two custom post types in a one-to-many post relationship. Province is the parent (one) and District is the child (many). I would like to generate an export CSV that includes each District title and its parent Province title.
Solution: Go to wp-admin > All Export > New Export. The first step is to choose a specific post type, and choose District as that post type. Then click "customize export file" to move on to the next step. Usually ID, Title and Content are already in place in the builder. You can drag the ID and Content blocks out of the box since you don't want to include those items.
Next click "Add Field" below the builder area to add a new custom column for the Province Title. Choose the option to select a field to export, and select the ID field. You may need to reset the column name information after choosing the ID field. Check the checkbox to export a value from a PHP function, type prov_parent_title in the function name field, and paste this function in the function editor to define the custom prov_parent_title function:
Problem: I would like to know how to best export and import Toolset information across sites.
Solution: In general, you should use the built-in Toolset > Export / Import features for exporting and importing the following Toolset structures:
- Custom post types definitions
- Custom taxonomies definitions
- Custom field groups definitions
- Post relationship definitions
- Views
- Content Templates
- WordPress Archives
- Toolset Layouts
- Post Forms
- User Forms
- Relationship Forms
- WooCommerce Blocks settings
- Access settings
You should use the export tool built into WordPress (wp-admin > Tools > Export) to export your site content, for example:
- Posts, Pages, posts in Custom Post Types
-- The taxonomy terms associated with each post
-- The custom field values associated with each post
-- The post relationships associated with each post
- Media library items
Then use the import tool built into WordPress (wp-admin > Tools > Import) to import that site content, but only after you have imported the Toolset structures listed above.
Problem: I am trying to import some User Forms into my site. The Forms were exported from another Toolset site using Toolset's export tool. Instead of importing the Forms as expected, I see a problem: The XML file [name] could not be read. Looks like there is one invalid node name related to a field for storing a user avatar. This node should be renamed to prevent XML parsing errors.
Solution: Edit the exported XML file using any text editor application. Correct any XML syntax errors. The file should pass validation with an online XML validator tool in order to be accepted in the upload/import process.
Problem: I've migrated my site to a new domain, and now my image custom fields contain URLs that include the old site domain. I would like to change those custom field values to point to the new domain instead.
Solution: A good 3rd-party site migration tool can handle domain replacements for image custom field values automatically during the migration process. Another option is to export your site's post content using the standard WordPress export process. Once that export file has been generated (it will be an XML document), you can edit it with a text editor like Sublime Text. Use the find-and-replace tool to find all instances of the old site domain and replace them with the new domain. Refer to our documentation below for more information about direct database modification using SQL.