I am trying to build up a custom archive page. However, I would like this archive page to skip the first 5 posts.
I’ve been able to accomplish this with the offset property. However, the pagination seems to break.
Here’s my code before the while:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query();
$wp_query->query('posts_per_page=".get_option("posts_per_page').'&paged=' . $paged);
?>
And this is the code I’m using for the pagination:
<?php wp_reset_postdata(); ?>
<div class="nav-previous" style="margin-bottom:24px; font-size:1.3em;"><?php next_posts_link(__('<span class="meta-nav">«</span> Entradas anteriores', '')) ?></div>
<div class="nav-next" style="margin-bottom:24px; font-size:1.3em;"><?php previous_posts_link(__('Entradas recientes <span class="meta-nav">»</span>', '')) ?></div>
Any help is deeply appreciated.
Johann