Offset Pagination (3 posts)

  1. Tongy
    Posted 7 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
    Posted 7 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
    Posted 6 years ago #


    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