<?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="box post" id="post-<?php the_ID(); ?>"> <div class="content"> <?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?> <div class="pic fl"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" /></a> </div> <?php } ?> <div class="post-date"><em>On <?php the_time('m.d.y'); ?>, In <?php the_category(', ') ?>, by <?php the_author_posts_link(); ?></em></div> <div class="post-title"> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> </div> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to"><div class="post-date">Read More</div></a> <!--/post-title --> <div class="post-excerpt"><?php the_excerpt(); ?></div> <!--/post-excerpt --> </div> <!--/content --> <div class="hl"></div> <div class="social-links"> <div class="fl"> <span><?php comments_number(0, 1, '%'); ?></span> <a href="<?php the_permalink(); ?>#comments" title="View Comments">Comments</a> </div> <div class="fr"><span><a href="<?php the_permalink(); ?>#respond" title="Leave Your Response">Leave Your Response</a></span></div> <br class="fix" /> </div> <!--/social-links --> </div> <!--/box --> <?php endwhile; ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <?php /* <ul> <li><?php next_posts_link('« Older Entries') ?></li> <li><?php previous_posts_link('Newer Entries »') ?></li> </ul> */ ?> <?php else : ?> <div class="box post"> <div class="content"> <div class="post-title"> <h1>No Posts Were Found</h1> </div> </div> </div> <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>