WordPress首页内容排除栏目
1 2 3 4 5 6 7 8 9 10 11 12 | <?php $limit = get_option('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=-1,-2&showposts=' . $limit=10 . '&paged=' . $paged); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title_attribute(); ?></a></h2> <?php endwhile; ?> <?php else : ?> <?php endif; ?> |
来源:邦林织梦(微信/QQ号:909912499),欢迎分享本文,转载请保留出处!部分内容来自网络,如有侵权请联系删除处理!
相关信息
本站提供代码修改,dedecms,WordPress仿站二次开发 / PHP网站建设以及SEO优化等网络营销推广等服务。
如有需要请加QQ: 909912499