Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Detecting whether a post is the first in a topic


bobbyh
Member

@bobbyh

Try this (inserted into the code I had above):

<?php if ( ( $i == 0 ) && ( $page == 1 ) ) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

Skip to toolbar