我是WordPress主题开发方面的新手,我发现有两个问题posts archive page: http://lnx.asper-eritrea.com/archivio/
上一页必须将所有博客帖子显示在无序列表中。
主要问题是,只显示了最近10篇发布的帖子。
另一个问题与erroneus调用query_posts() 作用
这是生成posts循环的PHP代码:
<?
// get the term using the slug and the tag taxonomy
//$term = get_term_by( \'slug\', \'featured\', \'post_tag\' );
// pass the term_id to tag__not_in
query_posts();
?>
<?php
if (have_posts()) :
echo \'<ul>\';
// Start the Loop.
while (have_posts()) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
echo \'<li>\';
get_template_part(\'contentArchive\', get_post_format());
echo \'</li>\';
endwhile;
echo \'</ul>\';
else :
// If no content, include the "No posts found" template.
get_template_part(\'content\', \'none\');
endif;
?>
那么为什么previuos循环只显示最后10条记录呢?如何修复并显示所有博客帖子?我能做些什么来修复query_posts() 呼叫
我认为这两个问题可能与此相关,因为可能我必须使用参数来表示显示所有博客帖子。