-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-tags.php
More file actions
87 lines (59 loc) · 1.56 KB
/
archive-tags.php
File metadata and controls
87 lines (59 loc) · 1.56 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
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
<?php
/* Expand tag results to multiple CPT's */
$query = [
'post_type'=> 'product',
'tag'=> $wp_query->query['tag']
];
$dynamics = new WP_Query ($query);
?>
<?php /* if (!isset ($dynamics) || !$dynamics->have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorries, no results were found.', 'sage'); ?>
</div>
<?php
get_template_part('templates/search-form');
*/
/* Print out posts */
if ($dynamics->have_posts()) :
$success = true;
?>
<style>
.archive-tag-product header {
background-color: rgba(0,0,0, .25);
}
.archive-tag-product header p {
color: white;
}
</style>
<div class="row">
<div data-columns="" id="columns" class="archive-tag-product">
<?php
while ($dynamics->have_posts()) {
$dynamics->the_post();
get_template_part('templates/content-productivity', 'product');
}
?>
</div>
</div>
<hr>
<?php endif;
/* Expand tag results to multiple CPT's */
$query = [
'post_type'=> 'advertorial',
'tag'=> $wp_query->query['tag']
];
$dynamics = new WP_Query ($query);
/* Print out posts */
if ($dynamics->have_posts()) :
$success = true;
?>
<style>
</style>
<h2>Company News</h2>
<div class="row">
<?php while ($dynamics->have_posts()) : $dynamics->the_post(); ?>
<?php get_template_part('templates/content-archive', get_post_format()); ?>
<?php endwhile; ?>
</div>
<hr>
<?php endif;