-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
57 lines (46 loc) · 1.46 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
<?php
get_header(); ?>
<section class="single-column">
<main id="main" class="main main-content">
<?php
if ( have_posts() )
{ ?><h4>
<?php
if ( is_category() ) {
$atitle = single_cat_title( '', false );
} elseif ( is_tag() ) {
$atitle = single_tag_title( '', false );
} elseif ( is_author() ) {
$atitle = '<span class="vcard">' . get_the_author() . '</span>';
} elseif ( is_post_type_archive() ) {
$atitle = post_type_archive_title( '', false );
} elseif ( is_tax() ) {
$atitle = single_term_title( '', false );
} else {
$atitle = '';
}
echo esc_html( $atitle );
?></h4>
<?php
// Start the loop.
while ( have_posts() ) :
the_post();
get_template_part( 'parts/excerpt' );
?>
<?php
// End the loop.
endwhile;
?>
<div id="postPagination" class="post-navigation">
<?php
// Previous/next page navigation.
the_posts_pagination( );
?>
</div>
<?php
} else {
get_template_part( 'parts/nocontent' );
} ?>
</main>
</section>
<?php get_footer(); ?>