• I was having an issue importing posts from an older site, the importer kept dropping out with “Failed to import author” messages, and not allowing me to go any further. I dug around and found that adding :

    if(empty($post['post_author'])) $post['post_author'] = "importer";

    to line 240 of the main plugin file wordpress-importer.php fixes the issue, allowing all posts to be imported and them WP will ask you who you want to assign the posts to. Of course you can change ‘importer’ to what ever you want, it’s just a string to avoid an empty post_author return.

    Hope this helps some of you.

    https://www.ads-software.com/plugins/wordpress-importer/

  • The topic ‘Failed to import – work around’ is closed to new replies.