// knowledgebase_category 为 custom post type taxonomy

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

 

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

 

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-06-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-12-15
  • 2021-11-25
  • 2021-11-09
相关资源
相似解决方案