-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wordpress import ? #40
Comments
I'm afraid we don't currently have a wordpress import. Definitely something we will look at for the future though! Thanks for the feedback. 👍 |
OK thanks for the good new :) |
Hi,
The It appears .md files are not out-of-the-box okay for Grav. I continue my researches, and I tell you :) |
Header is in wrong format, which prevents the files from working. |
Yup, I'll try to do a little script, but I'm not very familiar with python. |
I made a first try in bash : https://gist.github.com/tmos/6131ecd3a7a1d526341d With this header from wp2md :
I have this :
And the import seems to be okay on my dev install. If anybody can confirm, it could be great :) |
you could set a few more header options that you might find useful. For instance, that postname could be used to set the 'slug' on the grav page. Is there anyway to get the wordpress tags for this article? Would be nice to set those too. Nice work though! |
Yes, the slug could be used to keep the same links on some sites (if permalinks were not modified). Well, this is not perfect, but works for a little migration. |
I did the following: The HTML to markdown is tricky, especially with definition lists and tables, full auto import might not entirely be possible. |
hey guys, am working on a wp plugin to export into a grav file structure. The export will support multilingual sites using qtranslate and qtranslate-slug |
Just released the wordpress plugin wp2grav to export pages, posts, authors, categories, tags into the grav format: https://github.com/SiteBeez/wordpress-wp2grav-markdown-exporter |
I'll test it soon ! Thanks for sharing ! |
@simogeo just updated the documentation regarding images and link. Also submitted to (lets see if it gets approved...) |
I tested your plugin. It works well ! great job |
great! feel free to improve the code if you see any need |
I believe this one can now be closed. :) |
The plugin was removed from the wordpress.org plugin site. |
@jeffmcneill You can find the plugin here: https://github.com/SiteBeez/wordpress-wp2grav-markdown-exporter, but from the reviews on WP.org it seems it's not working. |
Hi @Kuzmanov thanks for that. Are there any other options for doing migration from Wordpress? I see this plugin, but it looks like it only fetches, but does not store Wordpress posts. Also, I've got both posts and pages that need migration from a few different sites. https://github.com/cpannwitz/grav-plugin-fetchwp P.S., my content is already stored in Wordpress in Markdown (I use the markdown-extra plugin), so conversion from html is not needed. |
@jeffmcneill No idea if there is a working plugin for migration, but I will definitely look into that and develop one :) FetchWP is not doing any migration. Just an idea: You can export |
@Kuzmanov the tables are very messy. Export out to xml and then modify from there is the only sane approach I can see (which is what the previous plugin did). I'll take a look at the errors it is throwing. |
Hi,
Is there a way to import wordpress content on Grav ?
I am very interested to switch from WP to this very nice CMS :)
Thanks for your time,
Regards
Tom
The text was updated successfully, but these errors were encountered: