forked from wpbrasil/odin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.php
24 lines (24 loc) · 1.04 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
<?php get_header(); ?>
<div id="primary">
<section id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title" itemprop="name headline"><?php echo __( 'Arquivos da Tag: ', 'odin' ) . '<span>' . single_tag_title( '', false ) . '</span>'; ?></h1>
<?php
$tag_description = tag_description();
if ( ! empty( $tag_description ) ) {
echo '<div class="tag-archive-meta" itemprop="description">' . $tag_description . '</div>';
}
?>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php echo odin_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'no-results' ); ?>
<?php endif; ?>
</section><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>