-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
34 lines (34 loc) · 1.28 KB
/
category.php
File metadata and controls
34 lines (34 loc) · 1.28 KB
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
<?php
/**
* This template will display category page
*/
get_header();
$term = $wp_query->get_queried_object();
$parent_term_ID = '';
if( $term->parent && ( $term->parent != $term->term_id ) ){ $parent_term_ID = $term->parent; }
?>
<div class="container kl-breadcrumb">
<span><a class="crumb" href="<?php bloginfo('url');?>"><?php _e( 'खबर लहरिया', 'kl' ); ?></a></span><i class="fa fa-angle-right"></i>
<?php if( $parent_term_ID ){ echo kl_category_parents( $parent_term_ID ); } ?>
<span><?php single_cat_title('', true); ?></span>
</div>
<div class="container">
<div id="kl-main-content" class="kl-sticky-sidebar">
<div class="theiaStickySidebar">
<h1 class="kl-page-title"><?php printf( esc_html__( '%s', 'kl' ), single_cat_title( '', false ) ); ?></h1>
<?php if( category_description() ) : ?>
<div class="kl-category-desc">
<?php echo category_description(); ?>
</div>
<?php endif; ?>
<?php if ( have_posts() ) : ?>
<ul class="kl-list-grid">
<?php while ( have_posts() ) : the_post(); get_template_part('partials/post','common'); endwhile; ?>
</ul>
<?php echo kl_numbered_pagination(); ?>
<?php endif;?>
</div>
</div>
<?php do_action('kl_sticky_sidebar','kl-main-sidebar');?>
</div>
<?php get_footer(); ?>