sandywp / plugins / blogger-importer
Blogger Importer
Imports posts, images, comments, and categories (blogger tags) from a Blogger blog then migrates authors to WordPress users.
Ready in seconds.
v0.9.3 50,000+ installs WP 3.0+

What you get inside
2 screensAbout this plugin
The Blogger Importer imports your blog data from a Google Blogger site into a WordPress.org installation.
Items imported
- Categories
- Posts (published, scheduled and draft)
- Comments (not spam)
- Images
Items not imported
- Pages
- Widgets/Widget Data
- Templates/Theme
- Comment and author Avatars
Reference
- https://www.simplepie.org/
The following were referenced for implementing the images and links
- https://wordpress.org/plugins/remote-images-grabber/
- http://notions.okuda.ca/wordpress-plugins/blogger-image-import/
- https://wordpress.org/plugins/cache-images/
- https://wordpress.org/plugins/tumblr-importer/
- https://core.trac.wordpress.org/ticket/14525
- https://wpengineer.com/1735/easier-better-solutions-to-get-pictures-on-your-posts/
- https://web.archive.org/web/20211121020918/http://www.velvetblues.com/web-development-blog/wordpress-plugin-update-urls/
- http://wordpress.stackexchange.com/questions//media-sideload-image-file-name (not working)
- https://code.tutsplus.com/a-guide-to-the-wordpress-http-api-the-basics–wp-25125t
Known Issues
- Some users have reported that their IFrames are stripped out of the post content.
- Requests for better performance of larger transfers and tranfers of images
- Review of behavior when it re-imports, partiularly are the counts correct
- Review using get_posts or get_comments with the appropriate parameters to get the counts and exists instead of using SQL
- Incorrect notice, PHP Notice: The data could not be converted to UTF-8. You MUST have either the iconv or mbstring extension installed. This occurs even when Iconv is installed, could be related to Blogger reporting 0 comments
- When the importer is running it’s not possible to stop it using the stop button
- Blogger’s count of comments include those not linked to a post e.g. the post has been deleted.
Filters and Actions
These actions and filters have been added so that you can extend the functionality of the importer without needing to modify the code.
Action – import_start – This is run when the import starts processing the records for a new blog
Action – import_done – This is run when the import finishes processing the records for a blog.
Filter – blogger_importer_congrats – Passes the list of options shown to the user when the blog is complete, options can be added or removed.
Questions
- How do I re-import?
Simply upload the XML file again. Already imported posts will be skipped and not duplicated.
- Once I’ve imported the posts do I need to keep the plugin?
No, you can remove the plugin once you’ve completed your migration.
- How do I know which posts were imported?
Each of the posts loaded is tagged with a meta tags indicating where the posts were loaded from. The permalink will be set to the visible URL if the post was published or the internal ID if it was still a draft or scheduled post
- blogger_author
- blogger_blog
- blogger_permalink
- After importing there are a lot of categories
Blogger does not distinguish between tags and categories so you will likely want to review what was imported and then use the categories to tags converter
- What about pages?
This importer does not handle blogger pages, you will need to manually transfer them.
- What about images?
This version of the importer imports these too, but you can disable this via a setting in the blogger-importer.php file. Tracking images of size 1×1 are not processed. If you with to specifically exclude other images you could code something for the image_filter function.
- What size are the images?
The importer will attempt to download the a large version of the file if one is available. This is controlled by the setting “LARGE_IMAGE_SIZE” and defaults to a width of 1024. The display size of the images is the “medium” size of images as defined on WordPress. You can change this in advance if you want to show a different size.
- How do I know what images are skipped?
If you hover over the progress bar for images it will tell you how many images are skipped. To see the filenames of these images you will need to enable WordPress debugging to log to file. See https://wordpress.org/documentation/article/debugging-in-wordpress/
sandywp / also on the shelf
Try another plugin
4.7 · 4K+ installs
Easily move your blog from Blogger to WordPress. Import all your content and setup 301 redirects automatically.
4.2 · 3K+ installs
This plugin automates setting up 1-to-1 mapping between Blogger.com (blogspot) blog posts and your new WordPress blog posts.
4.2 · 900+ installs
Export Wordpress data to Blogger(Blogspot) XML.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.