-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
45 lines (36 loc) · 2.17 KB
/
category.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
<?php get_header(); ?>
<div class="container-fluid">
<div class="row-fluid">
<div id="sidebar" class="my-col-3">
<?php get_sidebar( 'left' );?>
</div>
<div id="" class="my-col-9">
<div class="row">
<header><?php wp_title( "Блог - ", true ); ?></header>
<div id="content" class="container-fluid">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><p class="separator"><b>♦</b></p></div>
<div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 sidebar-right">
<?php get_sidebar( 'right' );?>
</div>
<div class="col-lg-9 col-md-8 col-sm-12 col-xs-12">
<?php $posts = get_posts( array(
'posts_per_page' => get_option( 'posts_per_page' ),
'category_name' => get_query_var( 'category_name' ),
'paged' => get_query_var( 'paged' )
) );
foreach ( $posts as $post ) : setup_postdata( $post ); $loop_counter++;?>
<?php get_template_part( 'content' ) ?>
<?php endforeach; ?>
<div class="page-numbers-blog">
<?php my_pagenavi(); ?>
</div>
<?php wp_reset_postdata() ?>
</div>
<div id="sidebar-custom" class="col-lg-3 col-md-4 col-sm-12 col-xs-12 sidebar-right">
<?php get_sidebar( 'custom' );?>
</div>
</div><!-- class="content" -->
</div><!-- class="row" -->
</div><!-- class="my-col-9" -->
</div><!-- class="row-fluid" -->
<?php get_footer(); ?>