Monday, January 18, 2010

wordpress sidebar catagory blog layout



<?php

$recent = new WP_Query("cat=9&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
  • <a href=" <?php the_permalink() ?>" rel="bookmark">
    </a>


  • <?php the_content(); ?>
    <?php endwhile; ?>
    ?>


    { N.B. got this code from Mr. rabbul who is very genius programmer in open source.]

    1 comment: