typecho调用指定文章列表下的文章方法

2022-03-01T10:15:12

比如想某地方调用mid=1那个分类的文章列表..怎么使用呢? 例如: 分类id=1 分类id=2 文章1.. 文章1.. 文章2.. 文章2.. 文章3.. 文章3.. 文章4.. 文章4..

你可以这样调用

<?php $this->widget('Widget_Archive@myCustomCategory', 'type=category', 'mid=1')->to($categoryPosts); ?>

然后操作$categoryPosts这个变量即可

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »