Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
Migrating a Website to Craft CMS
We use a third party plugin to export WordPress blog posts as XML with custom XML and functions to tweak the output.
WP All Export is a third-party commercial plugin that simplifies data export from WordPress. While some features are free, the most powerful ones require a paid license.
Key Features:
Using WP All Export:
Installation:
Creating an Export:
Customizing XML Output:
<data>
<post>
<status>{Status}</status>
<slug>{Slug}</slug>
<author>{Author Name}</author>
<date>{Date}</date>
<PostType>{Post Type}</PostType>
<title>{Title}</title>
<content>[remove_html_comments({Content})]</content>
<excerpt>{Excerpt}</excerpt>
<category>{Categories}</category>
</post>
</data>
<?php
function setCraftStatus($statusName) {
if($statusName == 'publish') {
return 1;
}
if($statusName == 'draft') {
return 0;
}
}
Importing to Craft CMS using Feed Me:
Key Takeaways:
WP All Export provides a powerful way to customize your WordPress data export, making it easier to prepare your content for migration to Craft CMS.
Migrating a Website to Craft CMS is made up of the following videos: