the_post() to skip first post in archive.php
-
Hi there.
I have this code inside my archive.php template file:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
This cde list all post from a category.
What i want is an way to skip first post and display all other posts from the category.With offset=1 is not working because if i use it it shows all post from the blog, not posts from one category.
Thank you.
- The topic ‘the_post() to skip first post in archive.php’ is closed to new replies.