Cha*_*ung 1 drupal drupal-6 drupal-taxonomy
嗨 假设我有一个名为"product"的术语名称,术语id是"123",我如何使用术语名称"product"来获得术语id"123"?
谢谢
Lax*_*n13 6
$get_term = taxonomy_get_term_by_name('product'); $term_id = $get_term[0]->tid;
这应该适合你.
归档时间:
14 年,8 月 前
查看次数:
2068 次
最近记录:
12 年,3 月 前