WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show full year removing limit does not remove post count limit? (2 posts)

  1. JAB Creations
    Member
    Posted 6 years ago #

    I imagine that this should filter all posts to be displayed in 2008 however it keeps only displaying the number limit I set in the control panel, 8. Is this a bug or am I missing something?

    <?php
    if (have_posts()) :
    query_posts('posts_per_page=-1'&'year=2008');
    while (have_posts()) : the_post(); ?>
     <div><a href="<?php the_permalink() ?>" tabindex="3" title="<?php the_title_attribute(); ?>"><?php the_time('M j, '); the_title(); ?></a></div>
    <?php endwhile;
    endif; ?>
  2. JAB Creations
    Member
    Posted 6 years ago #

    I was accidentally adding extra quotes, it's more like an HTTP query...
    query_posts("posts_per_page=-1&year=2008");

Topic Closed

This topic has been closed to new replies.

About this Topic