Código PHP:
Ver original- <?php $lastposts = get_posts('category_name=Name&numberposts=4'); 
- $i=1; 
- foreach($lastposts as $post) : setup_postdata($post); ?> 
-   
- <li id="post<?php echo $i;?>"> 
-   <p> 
-     <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 
- </p> 
- <a href="<?php the_permalink(); ?>" rel="bookmark"> 
-      <img src="<?php echo catch_that_image() ?>"/> 
- </a>               
- <?php excerpt('20');?> 
- <a href="<?php the_permalink(); ?>" rel="bookmark"> 
-     <div id="readmore">Ver detalles</div> 
- </a> 
- </li> 
- <?php  
- $i++; 
- endforeach; ?> 
Ahora cada li tiene su id!!!!