forked from mashshare/mashshare-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy-kbe_tags.php
114 lines (104 loc) · 2.67 KB
/
taxonomy-kbe_tags.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
get_header();
$kbe_tag_slug = get_queried_object()->slug;
$kbe_tag_name = get_queried_object()->name;
$kbe_tag_post_args = array(
'post_type' => KBE_POST_TYPE,
'posts_per_page' => 999,
'orderby' => 'menu_order',
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => KBE_POST_TAGS,
'field' => 'slug',
'terms' => $kbe_tag_slug
)
)
);
$kbe_tag_post_qry = new WP_Query($kbe_tag_post_args);
?>
<div id="kbe_container">
<!--Breadcrum-->
<?php
if(KBE_BREADCRUMBS_SETTING == 1){
?>
<div class="kbe_breadcrum">
<?php echo kbe_breadcrumbs(); ?>
</div>
<?php
}
?>
<!--/Breadcrum-->
<!--search field-->
<?php
if(KBE_SEARCH_SETTING == 1){
kbe_search_form();
}
?>
<!--/search field-->
<!--content-->
<?php
if(KBE_SIDEBAR_INNER == 0){
?>
<div id="kbe_content" class="kbe_content_full">
<?php
}elseif(KBE_SIDEBAR_INNER == 1){
?>
<div id="kbe_content" class="kbe_content_right">
<?php
}elseif(KBE_SIDEBAR_INNER == 2){
?>
<div id="kbe_content" class="kbe_content_left">
<?php
}
?>
<!--leftcol-->
<div class="kbe_leftcol">
<!--<articles>-->
<div class="kbe_articles">
<h2><strong><?php _e('Tag:','kbe'); ?> </strong><?php echo $kbe_tag_name; ?></h2>
<ul>
<?php
if($kbe_tag_post_qry->have_posts()) :
while($kbe_tag_post_qry->have_posts()) :
$kbe_tag_post_qry->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</li>
<?php
endwhile;
endif;
?>
</ul>
</div>
</div>
<!--/leftcol-->
</div>
<!--aside-->
<?php
if(KBE_SIDEBAR_INNER == 0){
?>
<div class="kbe_aside kbe_aside_none">
<?php
}elseif(KBE_SIDEBAR_INNER == 1){
?>
<div class="kbe_aside kbe_aside_left">
<?php
}elseif(KBE_SIDEBAR_INNER == 2){
?>
<div class="kbe_aside kbe_aside_right">
<?php
}
if((KBE_SIDEBAR_INNER == 2) || (KBE_SIDEBAR_INNER == 1)){
dynamic_sidebar('kbe_cat_widget');
}
?>
</div>
<!--/aside-->
</div>
<?php
get_footer();
?>