Migrating from WordPress to Ghost

Ghost runs faster and more stably compared to WordPress. AMP is built-in and works quite stably.

The migration process from WordPress to Ghost can be handled in a few steps.

First of all, there is no category feature in Ghost; it works with tags. Therefore, you can first convert categories to tags in WordPress. You can handle this in the WordPress admin panel under Tools/Available Tools. It doesn’t require extra plugins or anything. It is already available in WordPress.

Afterwards, we need to export our content by installing the Ghost official plugin on WordPress.

The plugin is compatible with Ghost’s v1 version. Therefore, the output obtained from here must be imported by installing Ghost v1, and then updated to v2.
We must also adapt the images in the output to Ghost.

First, the plugin is installed, and the output is received as JSON. In the output received,
while WordPress image paths:

/wp-content/uploads/

Ghost image paths:

/content/images/

you perform a bulk replace in the downloaded JSON file using Notepad++ or a similar tool.

Afterwards, you can set up a $5 server from DigitalOcean to install v1. There is a Docker image available in the DigitalOcean marketplace. Install it directly. (You can get it via my affiliate link. It gives you $100 credit for your first 2 months.) Afterwards

The code below installs Ghost v1 on your server.

docker run -d --name some-ghost -p 3001:2368 -v /path/to/ghost/blog:/var/lib/ghost/content ghost:1-alpine

After this, import the JSON at hand in the Ghost admin panel. Let the content load.

Then update Ghost to v2. In the directory where Ghost is installed, the following will be run;

ghost update

Upload the images. Delete the demo content, etc. Leave your own content. That’s it.

Merhaba. Peki sizin sitenizin altyapısı nedir? Bana epey hızlı geldi.

Hello.