-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchives.php
executable file
·47 lines (39 loc) · 1.16 KB
/
archives.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section>
<article id="post-<?php the_ID(); ?>">
<header>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<p>Posted on <?php the_time('F jS, Y'); ?> by <?php the_author(); ?></p>
</header>
<section>
<h2>Archives by Month</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject</h2>
<ul>
<?php wp_list_categories(); ?>
</ul>
<h2>Archives by Tag</h2>
<?php wp_tag_cloud('format=list&smallest=12px&largest=12px'); ?>
</section>
<footer>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</footer>
</article>
</section>
<?php endwhile; else: ?>
<section>
<article>
<p>Sorry, no posts matched your criteria.</p>
</article>
</section>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>