In the index.php
page, I need to skip 5 posts (the last 5 posts in the blog).
I use the WP-Paginate plugin, but all pages show the same. I'm using offset=5
, this is my code:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;?>
<?php $additional_loop = new WP_Query("offset=5&paged=".$paged);
if ($additional_loop->have_posts()) :
while ($additional_loop->have_posts()) : $additional_loop->the_post();
the_title();?><br/>
<?php the_content();?>
<?php endwhile;endif;?>
<?php if(function_exists('wp_paginate')) {
wp_paginate('range=4&anchor=2&nextpage=Next&previouspage=Previous');
} ?>