How to programmatically create forum topics using entity api?
$wrapper-&gt;taxonomy_forums = reset($terms)-&gt;tid; works!! taxonomy_get_term_by_name() returns an array of objects keyed with extra dimension (I think its keyed by the tid). The wrapper's save method will call forum_node_presave($node) but will look in the wrong dimension for the tid if you don't get rid of it.