[resolved] multiple loops vs rewind loop for content slider (2 posts)

  1. nadine00
    Posted 5 years ago #

    Hi There,

    I'm making a content slider, the slider holds video links, and I'm basically trying to do something where it shows 5 posts at a time. Right now I've got 4 loops, each offset by an integer.

    eg: 'posts_per_page' => 5 | 'offset' =>5, 'posts_per_page' => 5 | 'offset' =>10, ..etc which gives me:

    <p>post one</p>
    <p>post two</p>
    <p>post three</p>
    <p>post four</p>
    <p>post five</p>
    <p>post six</p>
    <p>post seven</p>
    <p>post eight</p>
    <p>post nine</p>
    <p>post ten</p>
    <li><p>poste eleven</p>..etc...</li>

    Is there a better way to do this using rewind loop so that I accomplish this kind of display Ad-infinitum, or basically as long as there are posts?



  2. nadine00
    Posted 5 years ago #

    Found it! Well it being a custom group of functions within the theme I was originally using. :)

Topic Closed

This topic has been closed to new replies.

About this Topic