@modern/standing

Migration route

WordPress to Sanity.

Moving WordPress to Sanity maps ACF groups and custom post types into a Sanity schema where the content model lives in code, versioned with the frontend. Editors gain real-time collaboration and a studio tailored to the estate, while the frontend ships as a composable, governable app.

From · WordPressTo · SanityPattern · Phased / rollback

Migration compiler

READY / 00

WORDPRESS objects pass through extraction, mapping and verification and assemble into a governed SANITY model. The rollback manifest validates 5 of 5 mappings.

What this route involves.

Sanity: Structured content platform with real-time collaboration; the content model is code, versioned with the frontend.

Consideration 01

ACF and CPT structures map into a coded Sanity schema with validation and references.

Consideration 02

Editors gain real-time collaboration and preview against the actual frontend.

Consideration 03

Frontend delivery is decoupled. Redesigns stop being migrations.

The work.

01

Inventory

Every URL, asset, metadata record, and integration catalogued before intent.

02

Model mapping

Source content types mapped to the target model with relationships intact.

03

Redirect manifest

Version-controlled, complete, and tested before cutover.

04

Phased cutover

High-value sections move first; rollback stays warm until the new estate proves itself.

The wider field.

Also evaluated

Sanity is the recommendation for this route, not the default. Every engagement is scored against the wider framework and headless-CMS field before a destination is chosen; the rest are selected only where the content shape or team genuinely calls for them.

Every WordPress URL gets a successor.

WordPress produces URL shapes Sanity will never generate on its own. Each one is exported, mapped and tested before cutover, so the first visitor to an old link lands on the right page, not a 404.

Redirect manifest · WordPress to Sanity

0 / 6 validating

  1. Short permalink/?p=4821/insights/pricing-model/
  2. Date permalink/2021/03/15/launch-notes//insights/launch-notes/
  3. Paged archive/category/press/page/3//press/
  4. Tag archive/tag/retail//sectors/retail/
  5. Upload/wp-content/uploads/2020/brochure.pdf/files/brochure.pdf
  6. Author archive/author/jsmith//about/

Illustrative rows. The real manifest is exported from the estate, merged with crawl and log data, kept in version control and tested before cutover.

The move to Sanity, in five phases.

Nothing on WordPress is switched off until Sanity has proven itself against it. Scroll the phases; the stage follows.

  1. 01

    Inventory

    Every URL, asset, metadata record and integration is catalogued before anyone names a target. That inventory, not the page count, sets the budget and the timeline.

  2. 02

    Model

    Source content types are mapped to a typed model with relationships intact. Nothing is flattened into rendered HTML on the way across.

  3. 03

    Manifest

    Every legacy path gets a successor on a version-controlled redirect manifest. It is tested against the old estate before cutover, never after.

  4. 04

    Cutover

    High-value sections move first. Search Console and the 404 log are watched daily while the rest of the estate follows in phases.

  5. 05

    Rollback warm

    The old platform keeps serving until the new estate proves itself. Rollback stays one deliberate decision away, then it is retired.

How do ACF fields map to a Sanity schema?

ACF field groups map to Sanity document and object types almost one to one: each field group becomes a schema type, each field becomes a typed field with validation, and relationship fields become Sanity references instead of post IDs stored as strings. The difference is where your schema lives. It is code now, versioned with your frontend, so a change to your content model is a pull request and no longer a click in an admin screen.

Repeater fields become arrays of objects. Flexible content layouts become arrays of block types, which is where Sanity's portable text and page-builder patterns fit. Custom post types turn into document types with their own permissions and their own preview. Taxonomies become reference documents where editors need to manage them, or controlled string lists where they only pick from them.

Nothing moves until the mapping is written down and reviewed with your editors. Only then does it run against the full export. Fields ACF defined and nobody ever populated get named in your inventory, to be retired on purpose.

What changes for editors when we move from WordPress to Sanity?

Editors move from a page-and-post model into a structured one, and the most visible changes are real-time collaboration on the same document, a studio built for the content types in use, and preview that renders the real frontend instead of an approximation of it. The block editor is gone. In its place sits a set of fields and block types matching the content model you agreed.

Some of this needs careful handling. An editor who learned to build layouts in the block editor loses that freedom unless your schema gives it back as an ordered set of page sections. An editor who publishes under deadline needs your studio to load fast and the preview to be trustworthy from day one. Roles and workflow states are rebuilt, and so are publishing permissions, to match the contributor, editor and admin distinctions WordPress had, not flattened into one role.

Training is short when the studio is built around the content. It is long when the studio is generic. That is the reason your schema gets designed with your editors in the room.

Can we run WordPress and Sanity side by side during your migration?

Yes, WordPress and Sanity run side by side during your migration, and most estates do exactly that, because phased cutover moves high-value sections first while the rest continues to publish from WordPress until its turn. The frontend reads from both sources for the duration. A section switches when its content, its metadata and its redirects have all been reconciled.

The practical rule: freeze content per section, never across the whole estate. While a section is being migrated, its editors keep working in WordPress until the delta sync runs, the section is verified and the switch is made. Then they work in Sanity. Your publishing calendar stays intact, and the weekend-long freeze that large migrations used to require never happens.

Rollback is kept warm throughout. If a switched section misbehaves, your frontend points back at WordPress for that section, and the exception is logged and fixed before the next attempt. WordPress is retired only when every section has been switched and the reconciliation report comes back clean.

Questions, answered.

01

Does Sanity charge per editor seat?

Sanity is a hosted service with usage-based plans. The tier you need depends on editor count, dataset size and API traffic, and your audit inventories all three so the running cost appears in your Modernization quote before you commit, alongside your build cost.

02

What happens to WordPress shortcodes in Sanity?

Shortcodes are parsed during export and converted into portable text blocks or custom object types, depending on what each one rendered. A shortcode that wrapped a plugin behaviour gets named in your inventory, because that behaviour has to be rebuilt in your frontend before the block can be used at all.

03

Can Sanity handle our WordPress multisite?

Yes, each site becomes a dataset or a scoped set of documents within one project, depending on how much content the sites share. Shared content is referenced once and inherited, which ends the copy drift between sites. Multi-brand estates of this kind are usually scoped at Transformation.

04

Do we lose revision history when moving from WordPress to Sanity?

Sanity keeps a version history from the moment content lands in it. WordPress revisions can be exported and archived, but they are not normally imported as live history, so your audit asks whether any regulatory or editorial requirement depends on that history before the decision is taken.

05

How do WordPress media files move into Sanity?

Media library uploads are imported into Sanity's asset pipeline with alt text, captions and credits carried as fields. Every legacy upload URL is written into your redirect manifest so inbound image links keep resolving, and derivatives are generated on request, which means you stop storing dozens of cropped copies.

Other routes from WordPress.

Free automated assessment

Scope this route with evidence.