I've been trying to get wp2drupal working on my D6.12 + WP2.62 install and although tags were being ported across as Drupal terms, the "connect nodes with taxonomy terms" section wasn't doing its job. It turned out to be that this query
db_query($query, $map_postid_nodeid[$binding['object_id']], $map_postid_nodeid[$binding['object_id']], $map_catid_termid[$binding['term_taxonomy_id']]);
...requires vid not nid in the second field. To get vid I created another mapping array higher up in the code:
$map_postid_vid[$post['ID']] = $node->vid;
and then changed the query to this:
db_query($query, $map_postid_nodeid[$binding['object_id']], $map_postid_vid[$binding['object_id']], $map_catid_termid[$binding['term_taxonomy_id']]);t to be that
...and now it works!
Comments
Comment #1
damienmckennaThanks, for catching that, I'll see how it works.
Comment #2
alxbridge commentedThis worked great for me - thanks bdwelle.
Patch attached for easy testing/integration of the fix.
Comment #3
alxbridge commentedComment #4
damienmckennaThanks for your work, I've committed this fix.
Comment #5
damienmckennaI've just added this to a new release - v6.x-1.7.