WordPress Export Posts: Best Practices for Exporting Posts With Images
Initially designed as a CMS for blogs, WordPress is now used to create different types of websites. But if you’ve built a website on this platform, you may have used its blogging capabilities too. For one reason or another, you might want to export your blog posts out of the site.
Fortunately, the process is simple enough that WordPress users with no technical knowledge can do it.
However, the best method to accomplish this varies depending on the WordPress posts you want to export. With this in mind, we will cover three ways of exporting WordPress blog posts.
Let’s start by discussing when it might be worth exporting from WordPress in the first place.
Why Export WordPress Posts
Sometimes, WordPress website owners want to simplify their niches or switch to a completely different one. Instead of deleting the old WordPress posts, you can preserve your work by exporting them to the new website.
Moving to a new domain is another reason to export your site content. Your old site might have search engine optimization (SEO) issues, so moving your WordPress posts to a new website will give them a fresh start.
Creating WordPress posts takes a lot of time and effort. Once you have published a significant number of posts, you might want to store them locally on your computer. Keep in mind that a blog export process is not the same as backing up a WordPress website.
Important! The following methods aren’t ideal for migrating hosting companies as they don’t export your website settings.
Method 1: Exporting All Posts Using the Export Tool
WordPress has a built-in export tool that lets you export content, including posts. It’s accessible via Tools -> Export from your WordPress dashboard.
This tool can download posts, pages, or media files from your WordPress site. Choosing to export all content will include comments, navigation menus, terms, custom fields, and custom posts next to posts and pages in the export file.
After choosing which content to export, click on the Download Export File button. You can import the exported XML file into another WordPress site using the built-in import tool.
Important! Since XML is a text-based format, your export file won’t include media files. Even if you choose the Media option, it will only export an XML file containing links to your media items.
Exporting Posts With Images
The method above works effectively only for exporting WordPress posts. To retrieve your posts’ image files, you also need to download the WP-Content/Uploads folder.
You can access your website’s folder using the File Manager provided by your WordPress host provider or an FTP account. We will show you how to download the WP-Content/Uploads folder via Hostinger’s hPanel:
- Go to Files -> File Manager from your hPanel dashboard.
- Open your root directory (public_html) and enter the WP-Content directory.
- Right-click the Uploads folder and select Compress.
- Give the compressed file a name and pick the ZIP format from the drop-down menu. Click Compress.
- Once the ZIP file is ready, right-click on it and select Download.
Important! Don’t be alarmed if the compressed folder contains the same images in different sizes. Whenever you upload an image to the media library, WordPress will duplicate it in various sizes for different purposes, such as thumbnails and featured images.
Method 2: Exporting Specific Blog Posts From Various Categories
When exporting posts using the WordPress export feature, you can narrow down the blog posts based on their category, date range, author, and status.
We can use this filtering feature, particularly the Author constraint, to export specific blog posts from various categories. Here’s how to do it:
- Create a dummy user. Go to Users -> Add New from your WordPress dashboard.
- Fill in the required fields and assign the role of Author. In this example, we’re naming the new user as “Anon.” Click Add New User.
- Navigate to Posts -> All Posts and pick one blog post you want to export. Change the author to the dummy one you created earlier. Do this step to other chosen blog posts.
- Go to Tools -> Export and pick Posts. Set your dummy account as the Author constraint, then click Download Export File.
Method 3: Exporting WordPress Posts With Images to PDFs
The first and second methods are convenient for moving WordPress posts from one site to another. However, this exported file is unreadable outside of WordPress.
If you want to export WordPress posts with images in a more user-friendly format like PDF, you need to use a WordPress export post plugin.
This method caters to bloggers who want to repurpose their WordPress website content for newsletters. All the image files will be exported along with the text-based content, so you don’t have to worry about downloading them separately.
Here’s how to export a WordPress blog post into a PDF file using Print My Blog, an excellent export plugin that supports the PDF format:
- Navigate to Print My Blog -> Settings from your WordPress dashboard. Check the Posts box and select Save Settings.
- Go to the post you want to export. A button labeled PDF should appear on the upper part of the page.
- A popup window will appear upon clicking on the PDF option. If you click the Print to PDF button, your browser’s print settings will appear. Set the destination to Save as PDF and select Save.
The export process above was using the plugin’s default settings. You can customize the content to print and page layout settings via Print My Blog -> Settings -> Customize Buttons.
For example, with the following Content settings, the plugin will export a PDF file containing the site title, date printed, post title, post featured image, and post content.
The Page Layout section controls how the post will be displayed. The settings are convenient if you want to export more than one blog post in a single PDF file or condense the content to save paper when printing.
WordPress provides different ways to export WordPress posts into various formats. When the time calls for a post export, you only need to use the proper method to get the desired content.
Now, let’s quickly recap these methods:
- Export all WordPress posts using the Export tool.
- Export specific blog posts from various categories.
- Export WordPress posts with images to PDFs.
Good luck with exporting WordPress posts to your new site. Should you have any more questions, don’t hesitate to leave a comment below.