Thursday, May 13, 2010

Different styles for each post in wordpress

Use below process to set different styles for different posts

$postid=$post->ID;

if($postid == 88)
{
$newclass = 'some-css-class-name';
}

h3 class="<= $newclass;?>" > $the_title /h3

No comments: