WordPress.org

Ready to get started?Download WordPress

Forums

Offset Pagination (3 posts)

  1. gaston.filardi@gmail.com
    Member
    Posted 5 years ago #

    Hi, I´m trying to offset 10 post in my category page with pagination. I tried many ways but the only think I get was the same 10 offset post in all my pages.

    Anyonw can help?

  2. stvwlf
    Member
    Posted 5 years ago #

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
          query_posts("cat=1&paged=$paged"); ?>

    Change cat=1 to whatever you need it to be. Or take cat=1& out altogether if you want all categories

  3. stoobs3k
    Member
    Posted 4 years ago #

    Hi,

    I had this same problem but i'm already using a query_posts with an array. How would I achieve the same above result?

Topic Closed

This topic has been closed to new replies.

About this Topic