Salta ai contenuti

Migrating from WordPress

Questi contenuti non sono ancora disponibili nella tua lingua.

WordPress is an open-source, personal publishing system built on PHP and MySQL.

Key Similarities between WordPress and Astro

Section titled Key Similarities between WordPress and Astro

WordPress and Astro share some similarities that will help you migrate your project:

Key Differences between WordPress and Astro

Section titled Key Differences between WordPress and Astro

When you rebuild your WordPress site in Astro, you will notice some important differences:

  • A WordPress site is edited using an online dashboard. In Astro, you will use a code editor and development environment to maintain your site. You can develop locally on your machine, or choose a cloud editor/development environment like StackBlitz, CodeSandbox or Gitpod.

  • WordPress has an extensive plugin and theme market. In Astro, you will find some themes and integrations available, but you may now have to build many of your existing features yourself instead of looking for third-party solutions. Or, you can choose to start with an Astro theme with built-in features!

  • WordPress stores your content in a database. In Astro, you will have individual files (typically Markdown or MDX) in your project directory for each page’s content. Or, you can choose to use a CMS for your content, even your existing WordPress site, and use Astro to fetch and present the data.

Switch from WordPress to Astro

Section titled Switch from WordPress to Astro

To convert a WordPress blog to Astro, start with our blog theme starter template, or explore more community blog themes in our theme showcase.

You can pass a --template argument to the create astro command to start a new Astro project with one of our official starters. Or, you can start a new project from any existing Astro repository on GitHub.

Terminal window
npm create astro@latest -- --template blog

You can continue to use your existing WordPress blog as your CMS for Astro, which means you will keep using your WordPress dashboard for writing your posts. Your content will be managed at WordPress, but all other aspects of your Astro site will be built in your code editing environment, and you will deploy your Astro site separately from your WordPress site. (Be sure to update your domain at your host to keep the same website URL!)

You may wish to take Astro’s Build a Blog Tutorial if you are new to working in a code editor and using GitHub to store and deploy your site. It will walk you through all the accounts and setup you need! You will also learn how to build Astro components yourself, and it will show you how to add blog posts directly in Astro if you choose not to use WordPress to write your content.

If you want to move all of your existing post content to Astro, you may find this tool for exporting Markdown from WordPress helpful. You may need to make some adjustments to the result if you have to convert a large or complicated WordPress site to Markdown.

To convert other types of sites, such as a portfolio or documentation site, see more official starter templates on astro.new. You’ll find a link to each project’s GitHub repository, as well as one-click links to open a working project in StackBlitz, CodeSandbox and Gitpod online development environments.

Altre guide per le migrazioni

Contribuisci

A cosa stai pensando?

Crea una Issue su GitHub

Il modo più rapido per segnalare un problema al nostro team.

Comunità
京ICP备15031610号-99