-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.php
40 lines (35 loc) · 1.09 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
<?php get_header(); ?>
<div id="sidebar-right">
<?php if ( !dynamic_sidebar( __('Sidebar','language') ) ) : ?>
<?php endif; ?>
</div>
<div id="content">
<div class="tri-col-span">
<h2 class="search-title">
<?php if ( is_tag() ) {
echo 'Tag Result for "'.$tag.'" | ';
} elseif ( is_archive() ) {
wp_title(''); echo ' Archive';
} else {
echo wp_title( '', false, right );
} ?></h2>
<?php if ( have_posts() ): while ( have_posts() ) : the_post(); ?>
<div class="blog-post">
<h2><a href="<?php the_permalink() ?>"><?php the_title();?></a></h2>
<?php the_excerpt();?>
</div>
<?php
endwhile;
else:
?>
<div class="no-post">
<h3><?php _e('No, Results Found','language');?></h3>
<p><?php _e('Sorry, No Posts found!','language');?></p>
</div>
<?php endif;?>
<?php theme_pagination( $wp_query->max_num_pages); ?>
</div>
</div><!--end of content div-->
<div class="clearfix"></div>
</div><!--end of container div-->
<?php get_footer(); ?>