logo

This is an old version of this answer!

Return to the current answer
Here is php implementation:


<ul class="four_column">
<?php
$liNum = 1; //variable for counting li number
$liLast = 4; //what li should be with class
?>
<?php query_posts(array('post_parent' => 8, 'orderby' => 'menu_order', 'order' => 'asc' , 'post_type' => 'page' )); while (have_posts()) { the_post(); ?>

<li <?if ($liNum==$liLast) {?>class="last"<?}?>><?php the_title(); ?></li>

<?php $liNum++; } ?>

</ul>

Mykyta Savchenko | 08/31/10 at 11:27am

This is an old version of this answer!

Return to the current answer