-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaff.php
More file actions
105 lines (77 loc) · 2.05 KB
/
staff.php
File metadata and controls
105 lines (77 loc) · 2.05 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/*
Template Name: Staff
*/
get_header();
?>
<section id="content" class="content columns small-12 large-9 p-0 h-a">
<div class="columns p-t-1 p-0">
<!-- -->
<div class="bread columns p-0-2 h-10">
<?php
get_template_part('secciones/general/breadcrumbs')
?>
</div>
<!-- -->
<?php
if (have_posts()):
while (have_posts()): the_post();
?>
<!-- -->
<div id="encabezado-perfil" class="columns small-12 p-1 h-a end">
<h4 class="column p-0 s text-left font-light">
<?php
echo get_the_title();
?>
</h4 >
<div class="columns h-a p-0 p-t-2 font-s font-md-m text-left">
<?php echo get_the_content(); ?>
</div>
</div>
<!-- -->
<?php
endwhile;
endif;
?>
<!-- inicia perfil -->
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = cpt('staff', $paged);
$q = new WP_Query( $args );
if ( $q->have_posts()):
while ( $q->have_posts()): $q->the_post();
?>
<div class="columns small-12 medium-6 large-4 text-center font-m font-md-s">
<a href="<?php echo get_the_permalink();?>" class="columns p-0 h-a card">
<div class="w-100 p-1 h-40-v ">
<div class="columns p-0 round">
<div class="columns p-0 imgLiquid imgLiquidNoFill">
<?php echo get_the_post_thumbnail(); ?>
</div>
</div>
</div>
<div class=" texto-perfil columns p-0-3 h-a">
<div class="columns h-a font-light">
<?php echo get_post_meta(get_the_ID(),"staff-nombre",true); ?>
</div>
<div class="columns h-a">
<?php echo get_post_meta(get_the_ID(),"staff-puesto",true); ?>
</div>
</div>
</a>
</div>
<?php
endwhile;
// Paginacion
include_once "secciones/general/paginacion-cpt.php";
// get_template_part("secciones/general/paginacion-cpt");
//
//
endif;
?>
<!-- Termina perfil -->
</div>
</section>
<?php
get_footer();
?>