WordPress.org

Support

Support » How-To and Troubleshooting » Using offset in query_posts only for selected categories

Using offset in query_posts only for selected categories

  • antekera
    Participant

    @antekera

    I´m including two categories in my loop and triying to apply offset to just one this way:

    <?php
      query_posts('cat=57,55&showposts=5&offset=1');
    ?>
    
    //// My content 
    
    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>

    But i´m getting offset in both, it is possible to apply only for one category and show last 5 posts in the other one?

  • The topic ‘Using offset in query_posts only for selected categories’ is closed to new replies.