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 ‘<?php single_tag_title(); ?>’</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 |
33 | + | |
34 | - | $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
34 | + | |
35 | - | global $query_string; |
35 | + | |
36 | - | query_posts( $query_string . '&posts_per_page=1&paged='.$paged ); |
36 | + | <?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
37 | ||
38 | <div class="archives"> | |
39 | - | if (have_posts()) : while (have_posts()) : the_post(); ?> |
39 | + | |
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 |