/
asesorias.php
60 lines (42 loc) · 1.09 KB
/
asesorias.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
<?php
/*
Template Name: Asesorías Jurídicas
*/
get_header();
if (have_posts()):the_post();
get_template_part('template-parts/page-header');
?>
<section id="asesorias" class="container">
<div class="row">
<div class="col-12">
<?php echo the_content(); ?>
</div>
<?php
$args = array(
'post_type' => 'asesorias-cpt',
'order' => 'ASC'
);
$q = new WP_Query($args);
while ($q->have_posts()): $q->the_post();
?>
<div class="areas-item col-12 col-sm-6 col-lg-4">
<div class="row">
<div class="areas-image col-12 no-padding imgLiquid imgLiquidNoFill">
<img src="<?php echo get_field('asesoria_imagen_inicio'); ?>" alt="Coello Trajo Abogados Asesorías Jurídicas">
</div>
<div class="areas-title col-12 text-center">
<h5><?php echo get_the_title(); ?></h5>
<a href="<?php echo get_the_permalink($q->id());?>">Ver más ></a>
</div>
</div>
</div>
<?php
endwhile;
?>
</div>
</section>
<?php
else:
echo "No hay Asesorías Jurídicas que mostrar!";
endif;
get_footer();