Everybody knows that content, or rather more generally data, is king. It’s what is driving the web. It’s what the web is all about. The web was built to exchange and share content. People go to the web because of content. Pretty much all websites out there work with some form of data. 27% of web is said to be powered by WordPress, a popular Content Management System. So in short, Wordpress is simply a platform that manages content, or data.
This implies that without content Wordpress would be nothing. The web would be nothing. Seriously, what would the web be without content? It seems to me that almost everything, or even all software, or even computers, is just a matter of data manipulation. Data is all that powers any given system or piece of software.
We humans have been creating content and recording it since time immemorial. Articulating our knowledge and passing it to generations or sharing it is a human need. Ancient civilizations made scribes of their experiences and knowledge in massive tomes. In our generation, more and more content is finding its way to the web. Be it in form of eBooks, via blogs or content management systems.
It’s therefore imperative that we don’t lose our data. We have to find a way of always backing up our data. This is the purpose of this lesson. We want to see how to back up our posts with one click of a button. There are full blown backup services and plugins out there, however, we want to start with using the simplest backup method. Simply exporting the posts into an XML file.
We will also explore how to retrieve them. This may sound too simplistic I admit. However, it’s something we can do in seconds. Yet it backups the most important piece of information we have which is our actual content. Themes, plugins and settings are always fine, however, content is the king as we have said. The former is always there waiting to be downloaded and installed.
However, if we lose our precious data, we are talking about losing years of hard work.
So what then is the objective of this lesson? Well:
Import from and Export our posts, comments, tags, categories, authors etc. to an XML file. This XML can easily be shared across sites. In short we can not only backup posts but also share them across multiple wordpress websites.
Import data exported from a blogger/BlogSpot platform. Blogger is a popular blogging platform owned by Google.
Import form LiveJournal, Movable Type and Tumblr blog.
Import RSS feeds.
Our only pre-requisite is to have an already working wordpress installation. It doesn’t matter whether it’s hosted locally or remotely. We’ll also install a plugin so you may require an internet connection for that.
Advantages of Wordpress Importer
We’ll be using the Wordpress Importer plugin. Why? Well, because:
It’s free and easy to use.
It’s very popular with over a million downloads.
It supports both posts and custom posts. Moreover, it can import and export these two along with their associated comments, tags, categories, authors and custom taxonomy terms.
It attempts to prevent duplicates by checking if the post already exists before importing.
It allows us to re-assign authorship of a given post.
It’s fairly fast.
Wordpress Importer plugin is available in the wordpress plugins repository for free. So:
Head over to the plugins portal and type ‘Wordpress Importer’. Hit enter.
Click the ‘Install Now’ button.
Click the ‘Activate’ button.
Importing Blogger, LiveJournal, Movable Type and Tumblr
To import posts from the above blog platforms, you need to first install the corresponding plugins as shown below.
With the Movable Type and Typepad, you can either import the XML file or Text file. As you see it informs us that it can take care of duplication, so don’t try to import everything at once. You’ll run out of memory. Instead chunk the file.
You can export everything, all content, that is posts as well as pages, menus etc. You can also import pure posts alongside their associated Meta data like tags, categories and author. In this lesson we are importing only posts. You can export posts in specific categories, tags or date. In this lesson we export all posts.
Click the ‘Download Export File’ button. Wordpress Importer shall generate a ‘WXR’ file, that is a Wordpress eXtended RSS file which we can later import.
It’s pretty easy to import posts or custom posts in wordpress.
In the tools menu item, click import, then click the ‘Run Importer’ under wordpress. Our assumption is that you’ve installed the Wordpress Importer already. We explained that in the ‘Installation’ section above.
HP_NO_IMG/data/uploads/users/a4c0adcd-8650-4b65-9b01-9dd628e70757/1543352460.png" alt="Import Done" />
Our posts will get imported. Note that if you are importing custom posts then create the post type before importing. Wordpress Importer is not meant to create for you a custom post type, it’s meant to import to an already existing post type.
I imported slightly over a hundred posts in almost a minute, so that’s not a bad performance in my opinion. It does check if a post already exists. The best thing is that it skips it if the post exists. It doesn’t quit. So you avoid a lot of duplicates and can also run it multiple times.
So that’s it, importing and exporting posts. Seems a very simple feature yet quite important. Never should anybody totally lose posts. Obviously this is not a replacement for a proper website backup, but it can supplement one.
This is also something you can do regularly. You can specify a category or tag and generate the backup file. Moreover, you can choose a date range.
Transferring posts between websites has never been so easy. In fact, it’s not that easy in other platforms. Wordpress makes it a piece of cake. It’s even possible to import from other platforms like blogger and tumblr. You can import custom post types too. However, make sure you create the post type before importing. All in all, I have used this plugin to import hundreds of posts in my personal blog, it has saved me a lot of time. It can save you too precious time.
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...