Need to distinguish LI’s independently from wp_get_archives
-
Currently I’m displaying the top 5 recent posts on my static home page with this…
<ul> <?php wp_get_archives('type=postbypost&limit=5'); ?> </ul>
I want to style each LI independently so that the most recent post is the largest and the next is smaller and the next smaller than that etc. I have the styles done but I need to know how to tell WP to add a class name to each LI with like a number or letter to decipher the first, second, third, etc…
So the output I’d want something like this:
<ul> <li class="recent1">link 1</li> <li class="recent2">link 2</li> <li class="recent3">link 3</li> <li class="recent4">link 4</li> <li class="recent5">link 5</li> </ul>
Thank you in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Need to distinguish LI’s independently from wp_get_archives’ is closed to new replies.