📜  通过 post id 获取术语 id - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:53.031000             🧑  作者: Mango

代码示例3
INSIDE TAXONOMY PAGES
$term      = get_queried_object();
$term_id   = $term->term_id;