列出所有terms的token

装上token_custom插件



定义一个token为:

// For all taxonmoy terms
$my_value = array();
foreach  ($node->taxonomy as $tid => $term) {
  $my_value[] = $term->name;
}
$yourtoken = implode(' ', $my_value);
print $yourtoken;

你可能感兴趣的:(PHP)