-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-post-grito.php
More file actions
38 lines (35 loc) · 1.07 KB
/
single-post-grito.php
File metadata and controls
38 lines (35 loc) · 1.07 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
<div class="grito-section">
<div class="w-container">
<?php if(get_field('grito_epigrafe')): ?>
<div class="grito-post-pretexto w-richtext"><?php the_field('grito_epigrafe'); ?></div>
<div class="spacer"></div>
<?php endif; ?>
<h1 class="grito-post-title"><?php the_title(); ?></h1>
<div class="grito-post-divas w-dyn-list">
<div class="w-dyn-items">
<?php
$connected = new WP_Query( array(
'connected_type' => 'post_divas',
'connected_items' => get_queried_object(),
'nopaging' => true,
) );
if ( $connected->have_posts() ) :
?>
<?php while ( $connected->have_posts() ) : $connected->the_post(); ?>
<div class="w-dyn-item">
<a href="<?php the_permalink(); ?>" class="grito-post-diva">
<?php the_title(); ?>
</a>
</div>
<?php endwhile; ?>
<?php
wp_reset_postdata();
endif;
?>
</div>
</div>
<div class="grito-post-content w-richtext">
<?php the_content(); ?>
</div>
</div>
</div>