• Hi,
    I’ve googled around and can’t seem to find an answer. I hope it’s because it’s a simple question.

    I have a current loop which displays the 10 most recent posts in the sidebar:

    <?php query_posts('showposts=20'); ?>
    				<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li><a>"><?php the_title() ?></a>
    </li>

    what i want to do is to echo “current” (for different color formatting) for the post in the list which corresponds to the current page displayed.

    I assume this involves a double loop, but I can’t seem to get the syntax right.

    Any help is great greatly appreciated.

    Thanks!!

  • The topic ‘sidebar posts list: format current post differently’ is closed to new replies.