# Executive summary
Use the import + export tool and a text editor to replace a few data points.
1. Export your posts to xml
2. Use a text editor with a search + replace tool to replace a few fields
3. Import the updated xml
# Search + replace details
- Format
- S: `search string`
- R: `replace string`
1. convert categories to portfolio types
- S: `domain="category"`
- R: `domain="jetpack-portfolio-type"`
2. convert tags to portfolio tags
- S: `domain="post_tag"`
- R: `domain="jetpack-portfolio-tag"`
3. convert post type to jetpack portfolio type
- S: ``
- R: ``
4. update url link
- use the regular expression option for this search
- S: `https://example.com/\d{4}/\d{2}/`
- R: `https://example.com/portfolio/`
- summary: converts `https://example.com/2005/07/project-slug/` becomes `https://example.com/portfolio/project-slug/`
5. update guid field
- S: `https://example.com/?p=`
- R: `https://example.com/?post_type=jetpack-portfolio&p=`
- summary: `https://example.com/?p=158` becomes `https://example.com/?post_type=jetpack-portfolio&p=158`
Once you import, WordPress does the rest. WP creates all the tags and types and updates all the ids.