Advertisement
Skip to content

What breaks moving posts between CMS: fix these 4 before export

By Updated 7 min read

On this page (8 sections)
  1. The short version
  2. Which formatting elements survive WordPress XML export vs HTML export vs headless CMS API pull
  3. What to fix in the source CMS before migration: shortcodes, custom blocks, embed URLs, internal links
  4. What you can batch-fix after import: image paths, heading structure, metadata
  5. How to test the export with 3 posts before committing to the full migration
  6. Whether AI tools (ChatGPT, Claude) can reliably clean exported HTML without breaking structure
  7. How to migrate blog posts between CMS platforms without losing formatting
  8. Questions people still ask

In short: Migrating blog posts between CMS platforms often breaks formatting like shortcodes, embeds, and internal links. Fix shortcodes and custom blocks before export, batch-fix image paths and metadata after import, and test with a few posts first.

Part of our guide on repair messed up custom fields

This guide reveals exactly which blog post formatting breaks on export and what you must fix before migrating to avoid hours of rework.

At a glance
WordPress XML exportBasic formatting
HTML exportVisual only
API exportVaries by CMS
Test migration posts3 minimum
ShortcodesFix before export
Image pathsFix after import

The short version

  • WordPress XML exports preserve basic formatting but break shortcodes and custom blocks.
  • HTML export retains visual formatting but loses metadata and structured links.
  • Fix shortcodes, embeds, and internal URLs before export for smoother migration.
  • Batch-fix image paths, heading structures, and metadata after import to restore integrity.
  • Test migration with 3 posts before moving all content to avoid costly errors.

Which formatting elements survive WordPress XML export vs HTML export vs headless CMS API pull

WordPress XML exports usually include post content, basic HTML formatting like headings and paragraphs, and metadata such as authors and dates. However, shortcodes and custom block content rarely survive intact and often appear as raw code or placeholders.

HTML export captures the visual layout of posts, preserving inline styles and most formatting as seen on the page. Metadata like tags, categories, and author info are not included. Internal links often break if they use relative URLs.

Headless CMS API exports vary widely depending on the CMS. Some provide raw content with structured data fields, others send JSON objects representing blocks or widgets. Formatting survival depends on the target CMS's ability to parse and reconstruct these structures.

Knowing which elements will survive helps plan fixes before and after the migration. There is more on move subtitles between video editors in a separate guide.

Formatting survival by export method
FormatBasic text & headingsShortcodes/custom blocksMetadataInternal links
WordPress XMLYesNoYesUsually broken
HTML exportYesNoNoOften broken
Headless CMS APIDependsDependsDependsDepends

What to fix in the source CMS before migration: shortcodes, custom blocks, embed URLs, internal links

computer screen showing export code
computer screen showing export code

Fixing shortcodes before migration is critical. Replace or convert shortcodes to HTML or the target CMS’s equivalent. Leaving them as-is often breaks post layout on import.

Custom blocks and widgets unique to one CMS rarely transfer. Convert these components to simple HTML or compatible blocks beforehand.

Check embed URLs for videos, social posts, or external content. Use absolute URLs and ensure embeds comply with the target platform’s supported formats. If that sounds like your situation, read up on non-wordpress cms for affiliate sites next.

Internal links referencing other posts or pages in the source CMS need updating to target CMS URL patterns or use absolute URLs to avoid broken links.

Some shortcodes depend on plugins unavailable in the new CMS. If these are not converted, they show as raw code or errors. For example, a gallery shortcode might appear as a plain shortcode text instead of images.

Converting complex custom blocks into raw HTML can lose interactivity or styling. You might need to rebuild dynamic features manually after migration. Testing these conversions on a sample post reveals what’s lost. It helps to understand troubleshoot 403 errors before going further.

Internal links can break due to different URL structures or permalink settings in the new CMS. For instance, WordPress uses /year/month/postname/ URLs by default, while another CMS might use /blog/postname. Mapping these differences before migration saves headaches.

  1. 1. Identify all shortcodes and custom blocks in posts.
  2. 2. Convert shortcodes to HTML or remove unsupported features.
  3. 3. Update embed URLs to absolute paths and supported formats.
  4. 4. Rewrite or verify internal links for target CMS compatibility.

What you can batch-fix after import: image paths, heading structure, metadata

After import, image paths often point to old CMS locations. Batch update image URLs to the new host or CDN to restore images.

Heading structures might collapse if import strips tags. Fix heading tags in bulk to maintain SEO and accessibility.

Metadata like categories, tags, authorship, and publication dates may require batch assignment or corrections using CMS tools or plugins.

Using find-and-replace tools or migration plugins that support batch edits reduces manual work.

Image URLs often reference the old CMS domain or subfolder and become dead links after import. Running a batch find-and-replace to swap old domain references with the new one restores images quickly.

Heading levels can flatten if import tools strip tags or convert headings to paragraphs. This confuses readers and harms SEO rankings. Use CMS bulk editing tools or SQL queries to restore proper <h1> to <h3> tags.

Metadata sometimes imports incorrectly if field names don't match. For example, author names might appear blank or default to admin. Cross-check metadata fields and update using CSV import tools or plugins to assign correct values.

  • Image paths – update URLs to point to new CMS or CDN
  • Headings – restore missing heading tags and hierarchy
  • Metadata – reassign categories, tags, authors, dates in bulk

How to test the export with 3 posts before committing to the full migration

screen with CMS editor showing shortcode code
screen with CMS editor showing shortcode code

Select three representative posts with several features: one text-heavy, one with shortcodes and embeds, one with many images and internal links.

Export these posts using the chosen method (XML, HTML, API), then import into the target CMS.

Check rendered posts for broken formatting, missing images, and link failures. Note what fixes are needed.

Adjust the source CMS content or export settings based on test results before full migration.

This reduces risk and prevents wasting time fixing thousands of posts after import.

Testing export with three posts uncovers issues early, like missing captions on images or broken video embeds. For example, a video embedded with a shortcode might fail to display in the new CMS.

Use different export formats in tests to see which preserves your content best. An XML export might keep metadata but lose some styling, while HTML export retains styles but drops SEO tags.

Check links manually and with automated tools. Broken internal links can be spotted using link checkers post-import. Fixes can then be scripted or done with bulk editing tools before full migration.

  1. 1. Pick 3 posts with different content types.
  2. 2. Export and import these posts to the new CMS.
  3. 3. Review for formatting and link integrity.
  4. 4. Apply fixes in source or export process.
  5. 5. Repeat tests if needed before full migration.

Whether AI tools (ChatGPT, Claude) can reliably clean exported HTML without breaking structure

AI tools can assist in cleaning exported HTML by removing unwanted tags, fixing broken links, or converting shortcodes to supported formats.

However, they are not foolproof. AI may misinterpret code blocks or alter critical formatting unintentionally.

Use AI-generated fixes as suggestions only, and always manually verify output on test posts.

Complex nested blocks and custom elements often require human review to maintain integrity.

For simple cleanup, AI tools can save time but don’t automate migration completely.

How to migrate blog posts between CMS platforms without losing formatting

CMS interface showing bulk metadata editor
CMS interface showing bulk metadata editor

Migrating blog posts between CMS platforms without losing formatting demands preparation on both ends.

Before export, clean shortcodes, convert custom blocks, and fix embed URLs in the source CMS.

Choose the export format wisely; WordPress XML keeps basic formatting, HTML preserves visual layout, and APIs offer structured data but vary by system.

After import, batch-fix broken image URLs, reassign metadata, and repair heading structures.

Test migration with a few posts first to avoid surprises.

If you want to focus on content creation and promotion rather than technical fixes, consider traffic and lead generation tools like Safelist Cash System that help maximize reach after migration.

  • Clean shortcodes and custom blocks before export
  • Choose export format based on target CMS compatibility
  • Batch-fix images and metadata after import
  • Test with 3 posts before migrating all content
  • Consider marketing tools post-migration for growth

Questions people still ask

Can WordPress shortcodes be automatically converted during export?

No, shortcodes usually require manual conversion or replacement before export. Leaving them intact causes broken content on the new CMS.

Does HTML export keep internal links functional?

HTML export preserves links visually but often breaks them if URLs are relative or use source CMS patterns.

Are all embed types supported when migrating to a new CMS?

Support varies. Popular embeds like YouTube usually work, but custom or proprietary embeds may break without conversion.

What is the safest export format for preserving SEO metadata?

WordPress XML export usually retains metadata better than HTML exports, but some metadata may still require manual re-entry.

Can AI tools fully automate blog post migration?

AI tools can assist with cleanup but cannot fully automate migration without risking broken formatting. Manual checks are essential.