Forums

the_post() to skip first post in archive.php (1 post)

  1. mserafim_dudu
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic