I am pretty new in WordPress theme development and I am finding 2 problem with this posts archive page: http://lnx.asper-eritrea.com/archivio/
The previous page have to show ALL the blog posts into an unordered list.
The main problem is that are shown only the last 10 published posts.
The other problem is related to the warning caused of an erroneus call to the query_posts() function.
This is the PHP code that generate the posts loop:
<?
// 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;
?>
So why the previuos loop show only the last 10 records? How can I fix it and show all the blog post?
What can I do to fix the query_posts() call?
I think that maybe the 2 problems are related togheter because maybe I have to use a paramether to say to show all blog posts.