zblogPHP指定分類列表第一頁面顯示的文章數量,zblog比較復雜的CMS模板中會用到,下面的代碼分享的并沒有實際測試過,請酌情使用!
掛載插件: Add_Filter_Plugin('Filter_Plugin_ViewList_Core','yunduan_Filter_Plugin_ViewList_Core'); function yunduan_Filter_Plugin_ViewList_Core($type, $page, $category, $author, $datetime, $tag, $w, $pagebar){ if($type =='category'){ if($category->Metas->count>0){ $pagebar->PageCount=$category->Metas->count; } } } 再分類里掛載一個$category->Metas->count,可以填寫指定顯示數量 來自于:2016-12-15 zxasd群內分享