4.5 How to Move a WordPress Site
There are cases when you might want to move your entire website between two WordPress installations or simply import a couple of posts or pages from somewhere else. This is really easy to do.
In this lesson, you’ll learn how to use the import and export tools in WordPress. You'll see how to move a WordPress site, how to import blog posts into WordPress, and how to import or export your site if you need to. You'll also get a quick look at the Site Health tool. Let’s begin.
1.Introduction1 lesson, 01:39
2.The Basics4 lessons, 32:43
3.Content Management6 lessons, 55:57
4.Customization, Plugins, and Settings6 lessons, 49:31
4.5 How to Move a WordPress Site
Welcome to lesson number 15. Now there are cases when you would want to migrate your website from one WordPress installation to another, or you might want to import just certain posts or certain pages from somewhere else. Well that is super simple to do in WordPress. In this lesson you'll learn how to use the import and export tools in WordPress and also get a quick look at the site health tool. Let's begin, so first of all let's cover exporting. If you go to the WordPress back end and you select Tools, you'll see Import and Export. If you select Export, you can choose what to export, all content or just Posts, Pages, and Media. And on each of these, you have options. Like, let's say for example you want to export some posts, all right? You can choose from which category, by which author, and also the start and end date. And of course you can choose the Status. If you want Pages you have similar filters. Same goes for Media. But let's say we're gonna export all content. Download Export file, save, and this creates an XML file that's named like this and also it uses today's date. And if we open that in a code editor, it's gonna look like this. It's basically an XML file that contains all information regarding your WordPress installation and its content. Now if you want to import content like this, you would use the Import tool. And I actually downloaded an XML file called themeunittestdata.wordpress.xml. This is a file provided by the WordPress theme that's used for testing themes. And it contains a whole bunch of different users posts, pages, attachments, and so on, and comments. So when you click Import, you of course have the option to import from multiple platforms. And you can choose which tool you want to use. I'm gonna use WordPress. So I'm gonna hit Install now. And then once it's installed, I'm gonna hit Run Importer. We're gonna browse for the file. I'm gonna choose my XML file, Upload file and Import. Now some of these authors are new, right? Some of the authors from the file I'm importing. So I have the option to create a new user for those authors or assign those posts to an existing author. So let's assign these to admin and to Adrian Purdila. And also I have the option to download and import all the file attachments. So let's do that as well, submit and we're gonna wait until WordPress does its thing. It's gonna take a little bit because that's quite a lot of content that's importing. And we're done. The import was successful. So now if we go to Posts, you'll see that we have so many posts in here. We have a lot of them, actually 53 posts. If we go to Pages we'll see we have a whole lot more pages than we had before. And also we have some comments that are awaiting approval. And also if we go to Media, we have a lot more images added here and we can also see some video files and some MP3, some audio tracks. And looking at the front end, Right, we can see that WordPress has now been populated with all of the content that was residing in that XML file. You can see from the archives just how much content we have. A lot of posts, a lot of pages, so yeah, that's a very simple way of moving content from one place to the other or just importing content from somewhere else. Now if you saw in Tools, there are some more options here. Let me quickly go through each of these. Site Health is actually a very cool tool developed by WordPress that gives you basically a status of your WordPress installation. And also, it tells you what you should fix and what you should improve. In my case, it tells me that hey, you should remove inactive plugins, and it tells me that I have two inactive plugins. I should remove inactive themes, and I also get some performance suggestions here. And also because I'm working locally, I don't have HTTPS applied, but we can also see all the past tests. As you can see here, it ran 23 tests and it seems that pretty much everything is in order. So this is a great tool that you can use to check if your WordPress website is running properly. You also have an Info tab here that basically shows you a more detailed view of this. Moving on we have two options here, export and erase personal data. So export personal data basically sends whatever data is saved in the WordPress database to a specific email address. And I'm talking about user data, okay? So you enter the username or email address of the user you wanna send the personal data to. Send Request, you'll get a confirmation email and if you check that, you'll get your personal data. And then you can also go ahead and erase the personal data. So this is useful for when you are a registered user on a WordPress website and you are no longer. So you want to erase your personal data from there. Well, you can do that with this option. All right, and that's a quick look at the tools available in WordPress. Now, in the final lesson of this course you'll learn how to customize WordPress through its built-in settings. See you then.