同样道理,在index.php中查找 get_posts(‘numberposts=5&orderby=rand’); 修改成 get_posts(‘cat=-3&numberposts=5&orderby=rand’); 其中-3 是你不想显示在首页随机文章中的文章分类ID。+ [# Y2 t* {4 D1 Q+ \ 还是在index.php中搜索 query_posts(“paged=$page”); 修改成 query_posts(“cat=-3&paged=$page”); 其中-3 是你不想显示在首页两栏列表的文章所在的分类ID。 Z) n. N/ x+ N7 W+ V/ O1 C; C
举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|WdidcNet ( 苏ICP备17005075号-1 )
GMT+8, 2026-11-30 21:56 , Processed in 0.015989 second(s), 7 queries , Redis On.
Powered by Discuz!
© 2010-2023.