forked from kushinauwu/OBF-Homepage-New
-
Notifications
You must be signed in to change notification settings - Fork 10
/
tag.php
46 lines (43 loc) · 1.61 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php get_header(); ?>
<div class="showcase-wrapper">
<div class="container-fluid">
<?php custom_breadcrumbs(); ?>
<h4>Tag:
<?php single_tag_title(); ?>
</h4>
<div class="navigation-wrapper">
<div class="posts-navigation">
<?php // Previous/next page navigation.
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'obf-new' ),
'next_text' => __( 'Next page', 'obf-new' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'obf-new' ) . ' </span>',
) ); ?>
</div>
</div>
<?php if ( have_posts() ): while ( have_posts() ): the_post(); ?>
<h2>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a>
</h2>
<p>
<?php echo get_the_date('F j, Y'); ?> :
<?php the_excerpt(); ?>
</p>
<?php endwhile;
else: ?>
<p>not working</p>
<?php endif; ?>
<div class="navigation-wrapper">
<div class="posts-navigation">
<?php // Previous/next page navigation.
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'obf-new' ),
'next_text' => __( 'Next page', 'obf-new' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'obf-new' ) . ' </span>',
) ); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>