0
我正在开发wordpress网站,我在主页上显示最新的3个帖子项目(基于类别),我想给“更多新闻”链接查看所有帖子与分页在单独的页面..我如何显示它?如何在wordpress网站中显示更多的分页文章?
我正在开发wordpress网站,我在主页上显示最新的3个帖子项目(基于类别),我想给“更多新闻”链接查看所有帖子与分页在单独的页面..我如何显示它?如何在wordpress网站中显示更多的分页文章?
<?php
query_posts('cat=-category_id&posts_per_page=3');
while (have_posts()) : the_post();
the_title();
the_content('Read the full post »'); or the_excerpt();
endwhile;
wp_reset_query();
<a href="pass category url">Caegory Link</a>
?>
对于寻呼你可以使用wp页面navi插件。
非常感谢 – logudotcom 2012-02-06 11:41:27