-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-event.php
47 lines (40 loc) · 1.3 KB
/
archive-event.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
get_header();
?>
<section style="margin:1.5rem var(--page-buffer);">
<h1>Event Archive</h1>
<h2 style="text-align:center; margin-top:2rem; margin-bottom:1rem;"><?php
if(is_category()) {
single_cat_title();
}
if(is_author()) {
echo "Posts by "; the_author();
}
?></h2>
<!-- posts go here -->
<div>
<?php
while(have_posts()) {
the_post(); ?>
<div class="blog__post-item" style="display:flex; flex-direction:column; margin:1rem 0;">
<a href="<?php the_permalink(); ?>"><h2> <?php the_title(); ?></h2></a>
<p><?php the_time("F j, Y"); ?> * Posted by: <?php the_author_posts_link(); ?></p>
<div style="height:1px; background:gray; width:100%;"></div>
<div>
<a href="<?php the_permalink(); ?>">
<button>Read more</button>
</a>
<div>comment icon here 0</div>
</div>
</div>
<?php }
?>
</div>
<!-- pagination won't show if you don't have posts to paginate -->
<?php
echo paginate_links();
?>
</section>
<?php
get_footer();
?>