academe / csv-importer-improved

WordPress CSV Importer
MIT License
2 stars 0 forks source link

Custom taxonomies are not being selected #6

Open judgej opened 7 years ago

judgej commented 7 years ago

Importing custom taxonomies will create the taxonomies correctly, but does not select them for the custom posts that are imported. I've not checked it for non-custom posts, or the non-custom categories taxonomy with a custom post type (so it's unclear if it is the custom taxonomy or the custom post type that is the problem).

Also the docs for taxonomies is confusing and needs some examples.

The error "Undefined offset: 1" appears for line 552 of csc_importer.php for each record imported.

        foreach ($this->_parse_tax($field) as $row) {
            list($parent, $child) = $row; // <<<--- FIXME: Notice: Undefined offset: 1
            $parent_ok = true;
judgej commented 7 years ago

The error is related to importing a single string as a taxonomy into an hierarchical taxonomy. The documentation hints at what is required, but does not give any examples.