View difference between Paste ID: 56UDXh4B and XpSc0JV6
SHOW: | | - or go back to the newest paste.
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
			<?php 
34
			         $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
35
                    global $query_string;
36-
                    query_posts( $query_string . '&"posts_per_page=1&paged=".$paged' );
36+
                    query_posts( $query_string . '&posts_per_page=1&paged='.$paged );
37
                     
38
39
            if (have_posts()) : while (have_posts()) : the_post(); ?>
40
			
41
			<div class="archives">
42
			<h4 class"archives-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
43
			<?php the_excerpt(); ?>
44
						<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>		
45
					
46
					
47
						</div>
48
49
		<?php endwhile; endif; ?>
50
51
	
52
	<div id="nextLink"><?php next_posts_link('Older News -->'); ?></div>
53
 <?php wp_reset_query(); ?>
54
<?php get_footer(); ?>
55
56
57
58