I have a car database that I want to import into Wordpress as taxonomies. The problem is I can't create 2 taxonomies at once (first is parent, last ones are childs of first).
$p = wp_insert_term("Acura", "classified-category", array("description" => "Acura"));
$c = wp_insert_term("Acura CL", "classified-category", array("parent" => $p["term_id"], "description" => "Acura CL"));
print_r($p);
print_r($c);
returns:
Array ( [term_id] => 13 [term_taxonomy_id] => 4720 ) Array ( [term_id] => 2589 [term_taxonomy_id] => 4721 )
But in Dashboard appears just parent category. The problem is similar to this one: Create two categories at once (parent > child)
Any idea ?
