-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchive.php
More file actions
61 lines (47 loc) · 2.25 KB
/
archive.php
File metadata and controls
61 lines (47 loc) · 2.25 KB
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
<?php get_header(); ?>
<main class="<?php echo get_theme_mod( 'single_width' ); ?> mt-<?php echo get_theme_mod( 'main_margin_top' ); ?> mb-<?php echo get_theme_mod( 'main_margin_bottom' ); ?>">
<div class="row g-5 mt-3">
<div class="col-md-8">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article class="blog-post">
<h2 class="blog-post-title"> <a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></h2>
<p class="blog-post-meta"> <?php the_time('F j, Y'); ?> by <?php if(get_the_author() != "adam"): ?>, by
<?php the_author_posts_link() ?>
<?php endif; ?></p>
<hr>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail(array(800, 400, true), array('class' => ' card-img-top')); // add post thumbnail
}
?>
<?php the_excerpt();?>
</article>
<?php endwhile; else: ?>
<div class="no-results">
<p>
<strong>There has been an error.
</strong>
</p>
<p>We apologize for any inconvenience, please
<a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page
</a> or use the search form below.
</p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div>
<!--noResults-->
<?php endif; ?>
<!-- Pagination -->
<nav class="blog-pagination" aria-label="Pagination">
<?php previous_posts_link('« Previous Entries') ?>
<?php next_posts_link('Next Entries »','') ?>
</nav>
</div>
<div class="col-md-4">
<div class="position-sticky" style="top: 2rem;">
<?php if ( is_active_sidebar( 'home_right_1' ) ) : ?>
<?php dynamic_sidebar( 'home_right_1' ); ?>
<?php endif; ?>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>