Wordpress 获取 custom post type 的当前文章 分类信息

// knowledgebase_category 为 custom post type taxonomy

$terms = get_the_terms( get_the_ID() , 'knowledgebase_category' ); var_dump($terms);

猜你喜欢

转载自www.cnblogs.com/ryanzheng/p/11737381.html