small php script to export all WordPress posts to Markdown textfiles (Pelican compatible - http://getpelican.com/)
also gets the custom fields from all posts - something the official pelican-import
script doesn't support
-
REQUIRED: you need to place the
HTML_To_Markdown.php
script into thewp2md
folder. make sure to get the newest one at https://github.com/nickcernis/html-to-markdown/ -
place
wp2md
folder in root folder of your WordPress installation -
make sure the
wp2md
folder is writable for your webserversudo chown www-data:www-data wp2md
-
call the
wp2md.php
with your browser or use the commandline -
the
wp2md
folder will be populated with textfiles namedyour-article-slug.md
- make sure your posts have unique titles!
enjoy!