-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.php
32 lines (30 loc) · 932 Bytes
/
tag.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
<?php get_header(); ?>
<div class="container pt-5">
<div class="alert alert-success mt-3 shadow">
<h4 class="text-uppercase text-center pt-2">
<?php printf( __( 'Content Tagged With: %s', 'dynamic-marketing' ), '<span>' . get_search_query() . '</span>' ); ?>
<em>“<?php single_tag_title(); ?>”</em>
</h4>
</div>
<div class="row mt-5">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-md-12 mb-4">
<article>
<h1 class="text-uppercase">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
</h1>
<?php the_excerpt(); ?>
<hr>
</article>
</div>
<?php endwhile; else : ?>
<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
<div class="col">
<?php echo dmi_pagination(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>