humanmade / WordPress-Importer

In-development rewrite of the WordPress (WXR) Importer
Other
358 stars 63 forks source link

Remapping featured images and handling of terms in posts that are not already in the database or mapping array #89

Closed lineupboekenmedia closed 8 years ago

lineupboekenmedia commented 8 years ago

I've added support for the remapping of featured images. There was non working code in the class and I made it working

I also added some code that handle terms better. I sort of copied the code from the old importer. If the term is missing in the importfile, the code will check if it can't find the term by its slug in the database and link the post to this term. If the term isn't found a new term is created based on the info of the post in the import file.

Could you merge the changes in the main repo?