The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

CSV Importer
Loading with parent-only term in hierarchical taxonomy (1 post)

  1. TCBarrett
    Posted 3 years ago #

    I'm loading posts that belong to the parent term in a hierarchical taxonomy. If they do not belong to a child term, then they are not added to the list of term_ids to assign the post to.

    I changed csv_importer.php around line 410 from:

    if ($parent_ok) {
                        $child_info = $this->term_exists($child, $taxonomy, $parent_id);


    if ($parent_ok) {
                        if( !$child )
                          $term_ids[] = $parent_id;
                        $child_info = $this->term_exists($child, $taxonomy, $parent_id);

    A bit cheap and dirty, but it did the trick for me.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CSV Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.