Advertisement
Guest User

Untitled

a guest
Nov 9th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <?php get_sidebar(); ?>
  4.    
  5.        
  6.  
  7.             <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  8.  
  9.             <?php /* If this is a category archive */ if (is_category()) { ?>
  10.                 <h3 class="archives"><?php single_cat_title(); ?></h3>
  11.  
  12.             <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  13.                 <h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
  14.  
  15.             <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  16.                 <h2>Archive for <?php the_time('F jS, Y'); ?></h2>
  17.  
  18.             <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  19.                 <h2>Archive for <?php the_time('F, Y'); ?></h2>
  20.  
  21.             <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  22.                 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
  23.  
  24.             <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  25.                 <h2 class="pagetitle">Author Archive</h2>
  26.  
  27.             <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  28.                 <h2 class="pagetitle">Blog Archives</h2>
  29.            
  30.             <?php } ?>
  31.              
  32.             <div class="archives"><?php /* adds category image */ do_action( 'taxonomy_image_plugin_print_image_html'); ?></div>
  33.            
  34.                      
  35.  
  36.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  37.            
  38.             <div class="archives">
  39.             <h4 class"archives-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
  40.             <?php the_excerpt(); ?>
  41.                         <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>    
  42.                    
  43.                    
  44.                         </div>
  45.  
  46.         <?php endwhile; endif; ?>
  47.  
  48.    
  49.     <div id="nextLink"><?php next_posts_link('Older News -->'); ?></div>
  50.  <?php wp_reset_query(); ?>
  51. <?php get_footer(); ?>
  52.  
  53.  
  54.  
  55.  
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement