[resolved] Display Posts from a category after a certain number (3 posts)

  1. John Robertson
    Posted 5 years ago #

    Ok, I know how to pull selective categories and display it...

    ?php $my_query = new WP_Query('category_name=featured&showposts=3'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>

    [html customization]

    <?php endwhile; ?>

    However I am doing something where I want it to show from the second post and onwards...so how do I exclude the first post from the query?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try adding an offset=1 parameter to your query.

  3. John Robertson
    Posted 5 years ago #

    Thanks bro, much appreciated :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.