diff options
Diffstat (limited to 'import-posts.php')
-rw-r--r-- | import-posts.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/import-posts.php b/import-posts.php index 113d356..70aa7a4 100644 --- a/import-posts.php +++ b/import-posts.php @@ -29,6 +29,10 @@ require_once getcwd() . '/wp-admin/includes/taxonomy.php'; // Required for kses functionality require_once getcwd() . '/wp-includes/kses.php'; +// Import media handling to get post thumbnails to work +require_once getcwd() . '/wp-includes/media.php'; + +set_post_thumbnail_size( 500, 300, true ); $archive = new ZipArchive(); if ( true === $archive->open( $filename, ZipArchive::RDONLY ) ) { |