Here\'s a PHP example of mine. Can anyone find a shorter/easier way to do this?
foreach($posts as $post){?>
If you'd like to have less in-line PHP, a great way of doing it is via JavaScript.
Using jQuery, it's simply: