WordPress.org

Ready to get started?Download WordPress

Forums

Custom Query into 3 different DIV (1 post)

  1. jk_
    Member
    Posted 3 years ago #

    Hi guys,

    I'm working on a news slider based on the well-known jQuery Tool Scrollable.

    On the header of my site, I would like to create a new Query (only sticky posts with a maximum of 12 posts), display like this :

    <!-- 1-4 -->
    <div>
       <div>POST 1</div>
       <div>POST 2</div>
       <div>POST 3</div>
       <div>POST 4</div>
    </div>
    <!-- 5-8 -->
    <div>
       <div>POST 5</div>
       <div>POST 6</div>
       <div>POST 7</div>
       <div>POST 8</div>
    </div>
    <!-- 9-12 -->
    <div>
       <div>POST 9</div>
       <div>POST 10</div>
       <div>POST 11</div>
       <div>POST 12</div>
    </div>

    Any help or advices would be much appreciated!

    Cheers,

    Jk_

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.