Skip to main content
2 of 3
Added a forgotten dot
Malte
  • 215
  • 1
  • 10

Split entries in columns

I'm trying to build a feed of entries in a column grid. Something like that:

<div class="column">
 <a class="entry">First entry</a>
 <a class="entry">Fourth entry</a>
</div>

<div class="column">
 <a class="entry">Second entry</a>
 <a class="entry">Fifth entry</a>
</div>

<div class="column">
 <a class="entry">Third entry</a>
 <a class="entry">Sixth entry</a>
</div>

How do I achieve that? In my head .batch(3) only works horizontally for rows.

Malte
  • 215
  • 1
  • 10