Module | Jekyll::WordPress |
In: |
lib/jekyll/migrators/wordpress.rb
|
QUERY | = | "select post_title, post_name, post_date, post_content, post_excerpt, ID, guid from wp_posts where post_status = 'publish' and post_type = 'post'" | Reads a MySQL database via Sequel and creates a post file for each post in wp_posts that has post_status = ‘publish’. This restriction is made because ‘draft’ posts are not guaranteed to have valid dates. |