-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchive.php
27 lines (27 loc) · 1.14 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
<?php global $wp_query; ?>
<header class="contentHeader contentHeader--archive">
<h2><?= get_queried_object()->name; ?></h2>
</header>
<aside class="researchMenu">
<button class="researchMenu-toggle">Expand Menu <?= icon( 'down', 'link' ); ?></button>
<form class="researchMenu-search" method="get" action="<?php bloginfo('url'); ?>/">
<input name="s" type="text" placeholder="Search blog">
<input name="type" value="blog" type="hidden">
<button type="submit"><?= icon( 'search' ); ?></button>
</form>
<?php dynamic_sidebar('blog'); ?>
</aside>
<section class="genericContent genericContent--research">
<?php while(have_posts()): the_post(); ?>
<article class="blog-single">
<h3 class="blog-article-head"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="blog-meta">Posted <?php the_date(); ?> by <?php the_author(); ?></div>
<div class="blog-excerpt"><?php the_excerpt(); ?><a href="<?php the_permalink(); ?>">Read More</a></div>
</article>
<?php endwhile; ?>
<div class="blog-pagination">
<?= paginate_links([
'total' => $wp_query->max_num_pages
]); ?>
</div>
</section>