Vorrei capire se è possibile avere un determinato ciclo loop che si ripeta ogni “n” post (nel mio caso 3). Questo perché vorrei visualizzare gli archivi di una categoria con uno slide in mootools a blocchi di 3 posts, ora sto utilizzando diversi loop tutti settati con offset differenti a scalare di 3 in 3. Mi chiedevo se ci fosse un modo per settare un conteggio oppure un offset dinamico che ogni “tot” post faccia ripetere il loop che ho incollato qui sotto:
`
<?php $postlist = get_posts('category=4&showposts=3');
if ($postlist): foreach ($postlist as $post) :setup_postdata($post);?>
<div class="slide_item">
<div class="post">
<h2><?php the_title(); ?></h2>
</div>
</div>
<?php endforeach; endif; ?>
Grazie