Doodlebee’s right, you could use WP’s pre-existing class for this. The only drawback of that is that if you reorder your Pages so that a different Page comes first in the list, then whatever you were doing to the first item in the Page list before you’ll now be doing to a different item instead.
To add a class of “first” to the first item in your Page list, whatever Page that happens to be, something like this should work:
$page_list = wp_list_pages(‘title_li=&sort_column=menu_order&echo=0’);
$page_list = preg_replace(‘class="page_item
‘, ‘class=”first page_item’, $page_list, 1);
echo $page_list;
For the wp_list_pages() call in the first line of the above, just use whatever you’re already using with “&echo=0” added to the end of the parameters.
– Tim