$taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , array $class = array() );
$ taxonomy_img = get_taxonomy_image(int $ term_id = get_queried_object()-> term_id,布尔$ return_img_tag = false,数组$ class = array());
get taxonomy image url if $return_html = true then return tag
如果$ return_html = true,则获取分类图像网址,然后返回标记
Parameters
参数 h4>
$term_id
$ term_id
(int) (Required) Taxonomy ID of the term.
(int)(必填)术语的分类ID。
$return_img_tag
$ return_img_tag
(boolean) (Optional) Formatted Image with tag for the field during output.
(布尔值)(可选)输出期间带有字段标签的格式化图像。
$class
$ class
(array) (Optional) Array of image classes ex: array('class1','class2',...) but $return_img_tag should be true to add image class.
(数组)(可选)图像类的数组,例如:array('class1','class2',...),但$ return_img_tag应该为true以添加图像类。
echo $taxonomy_img;
echo $ taxonomy_img;
// category / taxonomy image url
//类别/分类图片网址