如何显示一个特定的分类类别描述

How to display one specific taxonomy category desciption

我需要使用此代码

显示一个特定的分类类别描述及其 id.Tried
$term_id = 9;
$taxonomy_name = 'service-item-tax';
$term = get_term_by('id', $term_id, $taxonomy_name );
echo $term->description;

但是work.Help我没有修复

您应该只能够执行以下操作:

echo term_description('TERM_ID','TAXONOMY_SLUG');