private function addTerms(&$node, $postId) { $terms = array(); $this->getWpTermsStatement->execute(array(':post_id' => $postId)); $result = $this->getWpTermsStatement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $terms[] = $row['name']; } $node->taxonomy['tags'][Variables::getVariable('vocab_id')] = implode(',', $terms); }