Support » Fixing WordPress » WordPress Offset – Display all post in 2008 *EXCEPT* eight most recent?

  • This should be working according to the documentation here…
    http://codex.wordpress.org/Template_Tags/query_posts#Offset_Parameter

    if (have_posts()) :
    query_posts("offset=3&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 d, '); the_title(); ?></a></div>
    <?php endwhile;
    endif;

    I just want to display a small list of anchors to all the posts in the year 2008 except the latest eight posts (since this list is an archive list).

    So the exact issue right now is that it’s not removing the last (most recent) eight posts.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Offset – Display all post in 2008 *EXCEPT* eight most recent?’ is closed to new replies.