郑州seo笔记首页不显示某个栏目文章设置方法记录。
在主题文件下,打开index.php文件,找到:
<?php if (have_posts()) : query_posts($query_string .‘&cat=-3,-66’); while (have_posts()) : the_post(); ?>
<?php if(is_sticky()) : ?>
<h3><li><a href=”<?php the_permalink() ?>” rel=”bookmark” target=”_blank” title=”<?php the_title(); ?>”><?php the_title(); ?> </a></li></h3>
<?php endif; ?>
<?php endwhile;else : ?>
<?php endif; ?>
</ul></div>
<?php if (have_posts()) : query_posts($query_string .‘&cat=-3,-66’); while (have_posts()) : the_post(); ?>
<?php if(is_sticky()) : ?>
两处都修改一下即可,添加或者删除需要操作的栏目ID。
转载请注明:郑州SEO优化_郑州网站优化 » 郑州seo笔记首页不显示某个栏目文章设置