Correct a few mistakes in vtxyzzy’s post
<?php $c = 0; $style=''; if (have_posts()) : while (have_posts()) : the_post(); $c++; if( $c == 1 ) { $style='first'; } elseif ( $c == $wp_query->post_count ) { $style='last'; } ?>
<div <?php post_class($style);?> id="post-<?php the_ID();?>">
Thanks
Thanks ambrosite. I installed wordpress to http://www.mydomain.co.uk/news/ and it works fine. I already have a Coldfusion news section, but since .cfm pages take precedence over .php pages at the moment, I am able to test wordpress meets my needs in parallel with my existing Coldfusion news section. Once I’ve got my wordpress content setup I’ll change the order of displaying index.php before index.cfm