Support » Themes and Templates » multiple loops vs rewind loop for content slider

  • Resolved nadine00

    (@nadine00)


    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:

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

    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?

    Thanks!

    Nadine

Viewing 1 replies (of 1 total)
  • Found it! Well it being a custom group of functions within the theme I was originally using. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘multiple loops vs rewind loop for content slider’ is closed to new replies.