forked from html5blank/html5blank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
62 lines (41 loc) · 1.49 KB
/
archive.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php get_header(); ?>
<?php if (have_posts()): ?>
<h2>Archives</h2>
<!-- Section -->
<section>
<?php while (have_posts()) : the_post(); ?>
<!-- Article -->
<article>
<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
<?php the_post_thumbnail(array(120,120)); // Show Thumbnail at 120px by 120px, change to whatever size you need ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->
<!-- Post Title -->
<h2>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->
<!-- Post Date + Time -->
<span class="date"><?php the_date(); ?></span>
<span class="time"><?php the_time(); ?></span>
<!-- /Post Date + Time -->
<?php comments_popup_link('Leave your thoughts', '1 Comment', '% Comments'); // Comments ?>
<?php html5wp_excerpt('html5wp_index'); // Callback length customisable in functions.php ?>
<br class="clear">
<?php edit_post_link(); // Always handy to have Edit Post Links available ?>
</article>
<!-- /Article -->
<?php endwhile; ?>
</section>
<!-- /Section -->
<?php else: ?>
<h2>Sorry, no posts to display!</h2>
<?php endif; ?>
<div id="pagination">
<?php html5wp_pagination(); // Pagination links (inside Functions.php) ?>
</div>
<?php get_sidebar(); // Get Sidebar (sidebar.php) ?>
<?php get_footer(); ?>