Don't like ads? PRO users don't see any ads ;-)
Guest

Template 2 code

By: a guest on Jul 2nd, 2010  |  syntax: PHP  |  size: 1.47 KB  |  hits: 234  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: Template 2
  4. */
  5. ?>
  6. <?php get_header() ?>
  7.        
  8.         <div id="case-wrapper">
  9.        
  10.         <div id="content">
  11.                 <h2 class="page-title">Header</h2>
  12.                
  13.                 <?php
  14.                 $args = array(
  15.                 'caller_get_posts' => 1,  // Don't put stickies at top
  16.                 'posts_per_page' => 1,
  17.                 'paged' => $paged,
  18.                 );
  19.                 query_posts($args);
  20.                 ?>
  21.  
  22.                
  23.                 <?php while ( have_posts() ) : the_post() ?>
  24.                 <div class="post-wrapper">
  25.                
  26.                 <div class="post" id="post-<?php the_ID() ?>">
  27.                         <h3 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title() ?></a></h3>
  28.  
  29.                         <!--<div class="post-meta">
  30.                                 Posted on <?php the_time('n/d/Y g:i:s A'); ?>
  31.                                 in: <?php //the_category(', '); ?>
  32.                                         <span class="sep">|</span><?php //comments_popup_link('Post Comment', '1 Comment', '% Comments') ?>
  33.                         </div>-->
  34.                                
  35.                         <div class="post-content">
  36.                                
  37.                                 <?php the_content('Click here to read more &raquo;'); ?>
  38.                                 <?php comments_template(); ?>
  39.                                
  40.                                 <div class="post-tags"><?php the_tags(); ?></div>
  41.                                
  42.                                 <div class="navigation">
  43.                                         <div class="navleft"><?php next_posts_link('&laquo; Older Posts', '0') ?></div>
  44.                                         <div class="navright"><?php previous_posts_link('Newer Posts &raquo;', '0') ?></div>
  45.                                 </div>
  46.                         </div>
  47.                        
  48.                 </div><!-- .post -->
  49.                 </div><!-- .post-wrapper -->
  50.                 <?php endwhile ?>
  51.                
  52.         </div><!-- #content -->
  53.  
  54. <?php get_sidebar() ?>
  55.         <div class="clearfix"></div>
  56.         </div><!-- #case-wrapper -->
  57. <?php get_footer() ?>