Help topics

Import WordPress posts into a model

Import the posts of a WordPress post type into a Morphic model. Your posts stay in WordPress. The model gets its own API name, and its entries can keep the addresses they had in WordPress.

Before you start

  • You need the administrator role. Other users see Only administrators can import content.
  • Your site needs a post type with posts or Advanced Custom Fields (ACF) fields. Morphic lists only post types that have an admin screen.

Steps

  1. Go to Import from WordPress in the sidebar.
  2. Read the scan table. Each row is a post type with its post count, its ACF field count and its address.
  3. Select Import on the row you want. The Import button turns into an Imported badge once that post type has a model.
  4. In Model name, keep the suggested name or enter another one. The name becomes the API name, for example /items/post. Use a letter first, then only a-z, 0-9 and _. The name can be 64 characters at most.
  5. Keep Serve the same addresses on to open entries at the WordPress addresses, for example /post/slug/. Turn it off if the model should not use those addresses.
  6. Select Start import.

Morphic shows Import started, then adds the job to the list on the page.

Result

A job goes through three states:

  • Importing while Morphic copies the posts in batches. The progress line reads 12 imported of 20 posts.
  • Measuring speed after all posts are copied. Morphic runs the latest 20 published posts in WordPress and in the new model, five times each. Morphic compares the median times. If an indexed ACF enum field exists, the 20 posts share one value of that field instead.
  • Finished when the job is done. The job shows the speed result, for example 3.8× faster on your own content, with the WordPress and Morphic times. Select Open <model name> to open the model.

If some posts could not be copied, the job shows 1 imported, 1 failed of 20 posts. It also lists each failed post with its error. See Some WordPress posts are not imported.

Note: The model also shows in WordPress, so SEO plugins, sitemaps and get_field() keep working.