Wordpress Post Importer for Blog and ProBlog
Allows you to import Wordpress Posts into ProBlog plugin
Wordpress Post Importer for Blog and ProBlog
Allows you to import Wordpress Posts into ProBlog plugin
Simple easy to use.
Klyp's WPimporter is an extremely powerful and easy to use tool to move your Wordpress posts into October's Blog or Problog.
Requirements
Blog plugin (http://octobercms.com/plugin/rainlab-blog)
or
ProBlog plugin (http://octobercms.com/plugin/radiantweb-problog)
3 Steps
- Export your Wordpress posts using Wordpress' own export tool into XML format
- Upload the exported XML into the importer
- Save and import!
Features
- Import an unlimited number of posts
- Choose what to import - published or all posts
- Automatically imports/creates tags and categories
- Imports featured image
- Select default author
- Search and replace unlimited texts
Donations
Please donate if you like this plugin or find this plugin useful :)
Installation via Command Line
php artisan plugin:install Klyp.Wpimporter
Usage
Make sure you have either the Blog or ProBlog plugin installed.
Once installed, navigate to Settings > Wordpress Importer.
- Upload your XML (only support XML for now, will support other format in future versions)
- Select your default Parent Blog Page from the dropdown list
- Select your default Author (default author will be used if no author is found in the import file)
- Select what to import (selecting Published will only import published posts)
- Select Yes from "Import XML after save" dropdown to do the import process immediately after save
- Select No from "Import XML after save" dropdown to do the import later
- If you need to search and replace certain texts, enter the texts and replacement texts under "Search for"
- Click Save or Save and close
-
webBook
The import works absolutely perfect, as expected.
-
Mideya
did not work, no proper documentation, last update too long time ago
-
Js Lim
I've got this error during save
Call to a member function getContents() on integer" on line 145 of /home/vagrant/web/octocms/plugins/klyp/wpimporter/models/Wpimporter.php
-
Klyp author
Hi,
Can you please email info@klyp.co with your version of OctoberCMS, and Rainlab Blog?
Please also include the xml file if possible, so we can test further.
Thank you
-
Fábio Teixeira
-
Adam Waring
Keep getting error "failed to open stream no such file or directory on line 147 of WPimporter.php" depressing because this used to work, but no longer does.
-
Adrian Mejias
Could you fix the 'The slug format is invalid' error?
-
Abhimanyu Saharan
I have fixed all the errors that people have complained about here. I have improved it also by adding a markdown converter which will automatically convert the content from HTML to markdown.
Since, I don't know where the original repository is for this plugin, I have created one under my own account otherwise I would have submitted an official PR.
-
Akkarin
Plugins need some new implementations that are fundamental for importing data from wordpress like comments, please can you implement that feature, it's really necesary!
Thanks!
-
Rambarun Komaljeet
If getting path problem: Go to plugins/klyp/wpimporter/models/Wpimporter.php Change line 149 to $importXmlPath = $importXmlFile->getLocalPath();
For 'The slug format is invalid' error: Go to line 261 and typecast $wpChildren->post_name to string. Or just copy and paste below code:
if (!empty((string)$wpChildren->post_name)) { $postBlog->slug = (string)$wpChildren->post_name; } else { $postBlog->slug = Str::slug((string)$item->title);
} -
Trias Nur Rahman
Doesn't work, showing error "The slug format is invalid"
-
Simon
I have the same problem as Gabriel Flores :( Has anyone resolved this?
-
Gabriel Flores
Hello, i have a problem to save .xml, the problem is this:
"simplexml_load_string(): Entity: line 194625: parser error : CData section not finished <img class="aligncenter size-full wp-image-15558" " on line 165 of /home/srv/october/plugins/klyp/wpimporter/models/Wpimporter.php
Wpimporter.php line 163 to 165
//replace from to $importFile = str_replace($replaceFrom, $replaceTo, $importFileContent); $xmls = simplexml_load_string($importFile);
XML line 194624 to 194627
<wp:postmeta> <wp:meta_key><![CDATA[_rawhtml_settings]]></wp:meta_key> <wp:meta_value><![CDATA[0,0,0,0]]></wp:meta_value> </wp:postmeta> -
Chad Cantrell
Very glad to see this support ProBlog
-
Klyp
@Vince Oveson, @Jan Brtka
Please email your error message together with your xml file to info@klyp.co
We will get back to you as soon as possible.
-
Jan Brtka
Same here, throws an error on import.
-
Vince Oveson
Throws an error when importing. Seems to be related to the file path of the uploaded
.xmlfile. -
Klyp author
Hi,
We have updated the plugin with the fix.
Please update the plugin :)
-
| 1.1.5 |
File attachement fix Mar 06, 2019 |
|---|---|
| 1.1.4 |
Fixed file_get_contents() error Aug 21, 2017 |
| 1.1.3 |
Fixed localpath and slug format Feb 16, 2017 |
| 1.1.2 |
Improved plugin detection Mar 06, 2016 |
| 1.1.1 |
Minor fixes Mar 03, 2016 |
| 1.1.0 |
Support for Blog plugin (1.2.2) and ProBlog plugin (3.2.5) Mar 02, 2016 |
| 1.0.1 |
First version of Wpimporter Feb 17, 2016 |