-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag.php
30 lines (27 loc) · 959 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
<?php
get_header();
?>
<main id="tag">
<section class="content ">
<div class="wrapper has-sidebar">
<div class="badge-01">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="featured-image">
<a href="<?php the_permalink()?>"><?php the_post_thumbnail('full', array('class' => 'news-img-lg full-width')); ?></a>
</div>
<div class="entry">
<h2 class="header-m header-500"><a href="<?php the_permalink()?>" class=""><?php the_title(); ?></a> </h2>
<p>
<?php echo wp_trim_words( get_the_content(), 40, '...' ); ?> </p>
</div>
<a href="<?php the_permalink()?>" class="read-more btn"><i class="icon-eye"></i></a>
</article>
<?php endwhile; endif; ?>
<?php wp_pagenavi(); ?>
</div>
<?php get_sidebar(); ?>
</div>
</section>
</main>
<?php get_footer(); ?>