Just use a counter to figure that last post, which on a WordPress blog means the latest (or first post displayed).
<?php
$count = 0;
if (have_posts()) {
while (have_posts()) : the_post();
$count++;
if ($count <= 1) {
//your special stuff
the_content();
} else {
the_content();
}
endwhile;
}
?>
So how do I go about on inserting that? I just insert that code? I know you said that’s for the first post, but the maximum posts per page on my blog is 10.
Should I do something like this:
<div class="lastpost">
<?php
$count = 10;
if (have_posts()) {
while (have_posts()) : the_post();
$count++;
if ($count <= 10) {
//your special stuff
the_content();
} else {
the_content();
}
endwhile;
}
?>
</div>
Oh, and thanks!