Tuesday, May 18, 2010

displays the updated blog in the sidebar on WPMU

lets try this new trict, How to displays the updated blog on WPMU, place this code in the sidebar.php or anything you want  to place it.

<!--added by myDeveLover--><div class="sidebarbox">
  <h4><span>Blog Terupdate</span></h4>
  <?php $blogs = get_last_updated();
  if( is_array( $blogs ) ) { ?>
  <ul>
    <?php foreach( $blogs as $details ) {
    ?><li>
    <a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>" title="<?php echo get_blog_option( $details[ 'blog_id' ], 'blogdescription' )?>">
    <?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a>
    </li><?php
    } ?>
  </ul>
  <?php } ?>
</div><!--//end by myDeveLover-->


comment is welcome...

No comments:

Post a Comment