I have this list set up of the latest 7 posts:
<ul id="post-list">
<?php
global $post;
$args = array( 'numberposts' => 7 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<a href="https://wordpress.stackexchange.com/questions/26841/<?php the_permalink(); ?>"><?php the_title(); ?><br /><span><?php the_author(); ?></span></a>
</li>
<?php endforeach; ?>
</ul>
How can I have a class of ‘current’ be displayed for the current post?