Archive for January, 2006

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;
?>

Mulleted

MulletedHmmm… I thought the main page was getting too damn long, and also people didn want to read all of the older content. So, I mulleted the main page. So now, the page shows 5 most recent posts and then gets tired and spits only post titles with hyperlinks. Nifty, eh?

Have done this through PHP code in template. Maybe making a plugin for this will be a good idea!

Here is a very good discussion on ‘blog mulletization’ on Jon’s blog.

Rang De Basanti

Rang De BasantiGuys, I got the audio of Rang De Basanti recently. And as I listen to it, I am liking it more and more. The music is awesome (A R Rahman hain bhai!), theme is good and the tracks are very diverse. And for heaven’s sake, its not all about loads of some silly mush. Believe that – it even has a track for you and your mother. I hope the movie also turns out to be that good.

Child Power

Seen the “pay service tax or your child will harass you” ad campaign lately? The concept is very novel at its core.

This puts all defaulting dads in an awkward position. They are goin to be nagged by their children if they pay service tax or not. Children dont know or care what service tax is and why should one pay it etc. All they understand is that if their dads dont pay it, then they r the bad guys. And no caring dad can afford to present that picture to their children. Gotcha! Good work tax guys!

Way out: Erring dads, learn to lie to your children. Eye to Eye.

Real Time Web Analytics