-
Notifications
You must be signed in to change notification settings - Fork 0
/
subcategory.php
45 lines (36 loc) · 978 Bytes
/
subcategory.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
/**
* Subcategory View
*
* @package Mercurio
* @subpackage Mercurio
*/
$subcategory = get_queried_object();
$contents = ['post', 'video'];
$imgClass = 'm-crop__img -headline';
$getCategory = get_category( get_query_var( 'cat' ) );
if($getCategory->parent) {
$categoryName = $getCategory;
global $categoryName;
}
$args = [
'taxonomy_id' => $subcategory,
'cropImag' => $imgClass,
'trending' => '',
'ad_1' => 7,
'ad_2' => 8,
'name_taxonomy' => $categoryName
];
get_header();
get_template_part( 'template-parts/taxonomy/header', '', $args );
?>
<div class="o-content">
<div class="o-category">
<?php
get_template_part( 'template-parts/taxonomy/content', '', $args );
get_template_part( 'template-parts/aside/aside', '', $args );
?>
</div><!-- .o-category -->
</div><!-- .o-content -->
<?php
get_footer( );