-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-archivo-de-exposiciones.php
48 lines (39 loc) · 1.14 KB
/
page-archivo-de-exposiciones.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
<?php
/* Template Name: Exposiciones */
get_header(); ?>
<div class="heading list">
<div>
<h3>EXPOSICIONES: </h3>
<ul class="dropdown">
<li>
<h1><?php the_title(); ?></h1>
<ul>
<li><a href="<?php echo esc_url( home_url( '/exposiciones/' ) ); ?>">Actuales</a></li>
<li><a href="<?php echo esc_url( home_url( '/exposiciones/exposiciones-futuras/' ) ); ?>">Futuras</a></li>
<li><a href="<?php echo esc_url( home_url( '/exposiciones/archivo-de-exposiciones/' ) ); ?>">Archivo</a></li>
</ul>
</li>
</ul>
</div>
</div>
<section id="events-post">
<h2 class="wrap"><?php the_title(); ?></h2>
<?php
$args = array(
'post_type' => 'post',
'meta_value' => 'Temporal',
'meta_key' => 'temporal',
'meta_value' => 'archivo'
);
$exPerm = new WP_Query( $args );
if ( $exPerm->have_posts() ) {
echo '<ul class="masonry cards">';
while ( $exPerm->have_posts() ) { $exPerm->the_post();
$image = get_post_thumbnail_id( $post_id );
$img_med = wp_get_attachment_image_src($image, 'medium');
get_template_part('inc/cards');
}
echo '</ul>';
}
?></section>
<?php get_footer(); ?>