-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-tv-section.php
51 lines (39 loc) · 1.44 KB
/
taxonomy-tv-section.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
47
48
49
50
51
<?php
/**
* The template for displaying Archive pages
*/
global $wp_query;
get_header(); ?>
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
<?php do_action( 'sp_start_content_wrap_html' ); ?>
<div id="main" class="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title">
<?php echo $term->name; ?>
</h1>
</header><!-- .page-header -->
<div class="entry-content">
<p><?php echo $term->description; ?></p>
</div>
<?php /* Start the Loop */ ?>
<div class="sp-posts">
<?php while ( have_posts() ) : the_post();
echo sp_render_video_post( $post->ID, 'post-sider', 'one-third' );
endwhile;
?>
</div> <!-- .container-msnry -->
<?php
// Pagination
if(function_exists('wp_pagenavi'))
wp_pagenavi();
else
echo sp_pagination();
else :
get_template_part( 'library/contents/no-results' );
endif;
?>
</div> <!-- #main -->
<?php get_sidebar(); ?>
<?php do_action( 'sp_end_content_wrap_html' ); ?>
<?php get_footer(); ?>