这里我们看到一个办法后面准备试试。
function zbp_exclude_category(&$type,&$page,&$category,&$author,&$datetime,&$tag,&$w,&$pagebar){
global $zbp;
if($type == 'index'){
$w[]=array('<>','log_CateID',10);
//重建分类
$pagebar = new Pagebar($zbp->option['ZC_INDEX_REGEX']);
$pagebar->PageCount = $zbp->displaycount;
$pagebar->PageNow = $page;
$pagebar->PageBarCount = $zbp->pagebarcount;
}
}这里我们可以在"include.php"主题文件中添加上面代码,记得上面的数字ID是我们需要不在首页显示的。
同时,我们需要创建"ActivePlugin_主题ID(){}"激活。
Add_Filter_Plugin('Filter_Plugin_ViewList_Core','zbp_exclude_category');我们看看指定的10分类ID的分类是不是在首页有内容看到。