Mullet code for WordPress
Hey, below is the blog mulletization code for WordPress powered weblogs. It’s damn easy. Have fun!
<?php
// to count posts inside WP loop
$postCount=0;
// number of full posts to display
$displayNumPosts = 5;
?>
<?php
// WP loop
if(have_posts()) : while (have_posts()) : the_post();
?>
<?php
if($postCount<$displayNumPosts) {
?>
<!-- TEMPLATE CODE TO SHOW FULL POST -->
<a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
<div class="content">
<?php the_content(); ?>
</div>
<?php } else { ?>
<!-- TEMPLATE CODE TO SHOW MULLETED POST -->
<?php the_time('M j, y') ?>
<a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
<?php } ?>
<?php
// increment $postCount
$postCount++;
?>
<?php
// WP loop ends
endwhile; endif;
?>
kapil :: Jan.22.2006 :: Uncategorized :: 14 Comments »
Hmmm… I thought the main page was getting too damn long, and also people didn want to read all of the older content. So, I
Guys, I got the audio of 


