WordPress.org

Ready to get started?Download WordPress

Forums

Using offset in query_posts only for selected categories (1 post)

  1. antekera
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic