Typecho文章页内获取当前父分类的所有子分类

文章页获取当前父分类下的所有子分类。

    widget('Widget_Metas_Category_List')->to($categorys); ?> next()): ?> category == $categorys->slug&&($this->is("post")||$this->is("category"))){ $childrens = $this->widget('Widget_Metas_Category_List')->getAllChildren($categorys->parent); for ($i=0; $i widget('Widget_Metas_Category_List')->getCategory($childrens[$i]); ?>
  • ">

输出如下:

发表新评论