Import a WordPress site

v0.0.3

The Migration extension of Mishka CMS moves a WordPress site into a Mishka CMS site: its posts, pages, categories, tags, media, authors, comments, menus and addresses. This guide takes you from a WordPress application password, or an export file, to a finished import. You finish with the content of the WordPress site in your CMS, and a redirect for every address that moved.

The extension has its own documentation. Each step below links to the page that covers it in detail, starting with the Migration documentation.

Before you begin

  • The Migration extension is set up on your site, and your account holds admin:dashboard:migration. An import writes as the admin who presses Import, so that admin also needs the permission of each kind the import brings, such as admin:dashboard:blog:post for posts. See Install the migration extension.
  • Mishka Blog on the same site, if you want posts, categories, tags, authors and comments. Without it those items wait with the reason Mishka Blog is not installed.
  • For the live-site source, a WordPress administrator and WordPress 5.6 or later. WordPress offers application passwords over HTTPS only, or on a local development site.

The import never changes the WordPress site. It reads from it.

Create a WordPress application password

An application password lets Mishka CMS read your site over its REST API without your login password. You can revoke it at any time.

  1. In WordPress, open Users, then Profile. Use the account of a WordPress administrator.
  2. Scroll to Application Passwords. Enter a name such as Mishka.
  3. Click Add New Application Password.
  4. Copy the 24-character password WordPress shows. It is shown once.

the WordPress profile page at Application Passwords, with the New Application Password Name field holding Mishka, the Add Application Password button and a table of existing application passwords

Type a name in the Application Passwords section of your WordPress profile, then click the button.

Keep the user name of that account beside it. The password is not your login password.

Or export a file

Use the export file instead of the live site if you have no administrator access, or if the site has translations. The file carries every translation, the drafts, the private posts and the comments. Polylang Free does not share its languages over REST, so a Polylang Free site needs the file.

  1. In WordPress, open Tools, then Export.
  2. Choose All content.
  3. Click Download Export File. The window in Mishka CMS takes one .xml file of up to 100 MB.

the WordPress Export page under Tools, with the All content option selected, the other options listed below it and the Download Export File button

The Export page of WordPress with All content selected.

Start an import in Mishka CMS

In the admin sidebar, open Migration under Plugins. Press New import on WordPress for a live site, or on WordPress export file for a file.

the Migration page with the WordPress and WordPress export file source cards, each with a New import button, and the Runs table below them with an Imported run and a Cancelled run

The Migration page lists the sources and the runs of the site.

The New import window has four steps:

  1. Where from. Enter the site's address, the user and the application password, or drop the export file. A master first picks the Site the content moves to. For a live site, Next tries the connection and shows the reason when WordPress refuses it.
  2. What to bring. Switch off what you do not want. Everything is on except Comments.
  3. Languages. Leave Import everything in one language empty to keep the languages of the source.
  4. Review. Read what the run will do, then press Start the dry run.

the New import window open on step 1 of 4, Where from, with the Site field, the Address and User fields, the Application password field and the Next button

The first step of a WordPress import asks for the address, the user and the application password.

step 4 of 4, Review, of the New import window, listing the address the content comes from, what it is bringing, what it is not bringing, the language setting, an Advanced options section, and the Back and Start the dry run buttons

The last step lists what the run will do before you start the dry run.

The step by step version is in Move a WordPress site.

Review the dry run

The dry run reads the whole source and writes nothing to your site. When the run's status is Dry run ready, its Result column shows the counts of what an import would create, update and skip. You also get a notification in the bell of the top bar.

the Runs table of the Migration page with a WordPress run whose status is Dry run ready, its counts of items to create, skip and decide, and the buttons to open its items, run it again, import it and cancel it

A finished dry run shows Dry run ready and the counts of what an import would do.

Open the run's Items page. Items marked Needs your decision are the ones the import cannot settle alone, such as a menu with no fixed place or a category the site already has. A panel above the table lists each conflict with its choices. The recommended choice comes first. Press a choice and confirm to settle every item that waits for it.

the Items page of a run with a panel titled 11 items need your decision, listing each conflict with its choices, the recommended choice first and highlighted

The Items page lists each decision with its choices.

See Read a dry run and Settle what needs your decision.

Import

When nothing waits, go back to the Migration page and press Import on the run. The page asks Import now? It writes what the dry run found into the CMS. Confirm. The status moves to Importing, then Imported, and the topbar bell tells you when it ends.

the Runs table of the Migration page with the WordPress run now marked Imported and the counts of what it created

The run is marked Imported when the import ends.

A run keeps what you did in the CMS. Run it again later and it updates what WordPress changed, and it keeps a record you edited, deleted or archived as you left it.

Run again, import one item, or cancel

  • Run again. Press it on the run to start a fresh dry run on the same connection. Press Import after it to write the result. Use it after you settle decisions or change a setting.
  • Import one item. On the run's Items page, Import this item imports a single item, and Import the picked items imports up to 100 rows you picked. An item whose parent is not imported waits. See Work on single items.
  • Cancel. Press it to end the run. The run deletes the application password it kept sealed and the export file, and it cannot be started again. Make a new run to import again.

What is imported

  • Posts, pages, categories and tags. Posts, categories and tags go into Mishka Blog. Pages are drawn in the site's main layout, as drafts unless you chose to keep them live at their old addresses.
  • Media. Files are downloaded from the source's own site into the Media library. Two files with the same content are found when they are downloaded, and the import asks you what to do.
  • Authors. Each author becomes a Blog blogger, tied to the user with the same email.
  • Guest comments. A comment is written as plain text, with its tags removed. A guest keeps the name they gave, or Anonymous if they gave none. The email a guest gave is for moderators only. Comments are off until you switch them on in step 2.
  • Menus and redirects. A menu goes to the header links, the footer links or a component, as you decide. Every address a WordPress visitor knows that the site serves elsewhere gets a redirect.
  • SEO fields. The title, description, robots, canonical address and Open Graph and Twitter fields that Yoast SEO or Rank Math kept for a post or page.
  • Elementor pages. The layout of an Elementor page becomes blocks of the visual editor, and the global colours and fonts of the site become a stylesheet of tokens.
  • Languages. WPML translations over REST, and Polylang translations from the export file. Posts that translate each other are joined as one group.

The full table is in What moves where.

What is not imported yet

  • Pages built with Divi or WPBakery. The importer converts the blocks, shortcodes and Elementor layouts it knows. Content it cannot convert is offered to plugins, and what no plugin converts is kept as text.
  • Some Elementor styling. A widget the CMS has no equivalent for waits for your decision.
  • Embeds other than YouTube and Vimeo, such as Twitter or X, Instagram, Spotify, SoundCloud and TikTok. They come in as a link to the address.
  • Non-Latin page addresses. Each segment of a page's path is written in Latin letters, so a segment with no Latin letter becomes page- and eight generated characters. See How slugs and page addresses are made.
  • Other sources. Joomla, Drupal and Ghost are not available yet.

After you change Language in addresses

Next steps