-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
64 lines (40 loc) · 1.19 KB
/
sidebar.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
<div class="sticky columns p-0" >
<!-- banners slider -->
<div id="sidebar-banner-slider" class="slick-sidebar columns p-0">
<?php
//
$args = array(
'post_type' => 'banner-sidebar',
// 'orderby' => 'ID',
// 'order' => 'ASC',
'posts_per_page' => 6
);
$q = new WP_Query($args);
// $imagen = get_the_post_thumbnail();
if ($q->have_posts()):
while ($q->have_posts()): $q->the_post();
$texto = get_post_meta(get_the_ID(),"side-texto",true);
?>
<div class="columns p-0 rel">
<a href="<?php echo get_post_meta(get_the_ID(),"side-link",true);?>" class="columns p-0 h-100 absUpL" target="_blank">
<div class="columns p-0 imgLiquid imgLiquidNoFill">
<?php
echo get_the_post_thumbnail();
?>
</div>
<div class="textos-slider h-35 columns z1k absDownL p-0 color-white v-center">
<h5 class="columns p-0-2 h-a text-center text-shadow color-blanco">
<?php
echo $texto;
?>
</h5>
</div>
</a>
</div>
<?php
endwhile;
endif;
?>
</div>
<!-- -->
</div>