Content Publisher can import content from an existing WordPress instance. This allows you to migrate the content from your WordPress site and host previous pages or blog posts on the Content Publisher servers.
We’ve attempted to simplify this process as much as possible for you.
- Select whether or not you’d like to publish the content that is migrated
- Run the command to export the content.
- Each item exported is saved as a Google doc on Google Drive.
- Check that the JSON API is accessible: The Content Publisher platform needs the URL of the WordPress instance in order to properly connect and export the content. The REST API has been enabled by default since version 4.7. If your site is https://example.com then please verify that you can see content by navigating to https://example.com/wp-json/wp/v2/posts
- Content Publisher collection ID: In order to import the content to the correct Content Publisher site you’ll need the Content Publisher collection ID for where you plan to import the content. Posts are NOT going to be published automatically after importing, but they will be automatically connected to the site ID provided.
- Run the import command: Put all of this information together to run the WordPress import process from the Content Publisher CLI.
- The command below will run the import process for a single article.
- Note the URL and SITE ID will need to be replaced using the URL of your WordPress instance that you wish to import and the content publisher site id for the site you wish to publish too.
$ pcc import wordpress https://example.com siteid12345
- Accessing the content on Google Drive: The content will be available on Google drive in a newly created folder. The folder’s name and a link to it will be printed in the console after a successful import. To publish to content we recommend first moving the Google Docs to the appropriate Content Publisher Google Drive folder before publishing.