
Template 2 code
By: a guest on
Jul 2nd, 2010 | syntax:
PHP | size: 1.47 KB | hits: 234 | expires: Never
<?php
/*
Template Name: Template 2
*/
?>
<?php get_header() ?>
<div id="case-wrapper">
<div id="content">
<h2 class="page-title">Header</h2>
<?php
$args = array(
'caller_get_posts' => 1, // Don't put stickies at top
'posts_per_page' => 1,
'paged' => $paged,
);
query_posts($args);
?>
<?php while ( have_posts() ) : the_post() ?>
<div class="post-wrapper">
<div class="post" id="post-<?php the_ID() ?>">
<h3 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title() ?></a></h3>
<!--<div class="post-meta">
Posted on <?php the_time('n/d/Y g:i:s A'); ?>
in: <?php //the_category(', '); ?>
<span class="sep">|</span><?php //comments_popup_link('Post Comment', '1 Comment', '% Comments') ?>
</div>-->
<div class="post-content">
<?php the_content('Click here to read more »'); ?>
<?php comments_template(); ?>
<div class="post-tags"><?php the_tags(); ?></div>
<div class="navigation">
<div class="navleft"><?php next_posts_link('« Older Posts', '0') ?></div>
<div class="navright"><?php previous_posts_link('Newer Posts »', '0') ?></div>
</div>
</div>
</div><!-- .post -->
</div><!-- .post-wrapper -->
<?php endwhile ?>
</div><!-- #content -->
<?php get_sidebar() ?>
<div class="clearfix"></div>
</div><!-- #case-wrapper -->
<?php get_footer() ?>