1. <?php get_header(); ?>
  2.  
  3.     <div id="content">
  4.        
  5.         <div id="main">
  6.        
  7.             <?php if (have_posts()) : ?>
  8.             <?php while (have_posts()) : the_post(); ?>            
  9.                
  10.                 <div class="theblogpost<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
  11.                    
  12.                     <div class="postdets">
  13.                        
  14.                         <a href="<?php the_permalink() ?>#comments">
  15.                             <div class="postcomments">
  16.                                 <?php comments_number('0', '1', '%'); ?>
  17.                             </div>
  18.                         </a>
  19.                        
  20.                         <h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  21.                        
  22.                         <div class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></div>
  23.                        
  24.                     </div>
  25.                    
  26.                     <div class="entry">
  27.                    
  28.                         <?php the_content('Continue Reading'); ?>
  29.                        
  30.                     </div>
  31.                
  32.                 </div> <!-- end theblogpost -->
  33.        
  34.             <?php endwhile; ?>
  35.             <?php else : ?>    
  36.             <?php endif; ?>
  37.  
  38.             <div class="pagenavi">
  39.            
  40.                 <div class="alignleft"><?php next_posts_link('Older Entries') ?></div>
  41.                
  42.                 <div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
  43.                
  44.             </div>    
  45.  
  46.         </div> <!-- end main -->
  47.        
  48.         <?php include (TEMPLATEPATH . '/sidebar-blog.php'); ?>
  49.        
  50.     </div> <!-- end content -->
  51.  
  52. <?php get_footer(); ?>