Thanks. It did not get your code to work, though I see the idea. This fixed it, but I guess it is the not best code: <?php if(count($items)): ?> <?php if(is_int($key%2/2) && (count($items)==$key+1)) { echo("</div>"); } ?> <?php endif; ?>
Is it possible in the k2 content module to echo something if the last item is of a odd number? I am echoing a closing div after every even number, but if the last item is a odd number I also need the closing div in that one. :-)
More