打开/include/taglib/tag.lib.php文件
找到
<span style="font-size:14px;" deep="13">if($getall==0 && isset($refObj->Fields['tags']) && !empty($refObj->Fields['aid'])){$dsql->SetQuery("Select tid From `dede_taglist` where aid = '{$refObj->Fields['aid']}' ");$dsql->Execute();$ids = '';while($row = $dsql->GetArray()){$ids .= ( $ids=='' ? $row['tid'] : ','.$row['tid'] );}if($ids != ''){$addsql = " where id in($ids) ";}if($addsql=='') return '';}</span>
在它下面加入
<span style="font-size:14px;">else if($getall==2){$addsql = " where typeid='{$refObj->Fields['typeid']}' ";}</span>
前端调用
<span style="font-size:14px;">{dede:tag sort='hot' getall='2'}<a href='[field:link/]'>[field:tag /]</a>{/dede:tag}</span>