Here’s what I’m trying to do: I would like to have a list of the recent posts within a certain category listed in the sidebar, with a max length of 10. The tricky part is, I want the color of the entries to gradually get darker as it goes down, so the newest post title would be white, while the last one would be dark gray. This is the code I’m currently using. I can figure out how to alternate the colors, but just not how to increment the colors.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>