-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-meme.php
More file actions
33 lines (28 loc) · 958 Bytes
/
single-meme.php
File metadata and controls
33 lines (28 loc) · 958 Bytes
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
<?php while(have_posts()): the_post(); ?>
<?php
$connected = new WP_Query( array(
'connected_type' => 'revista_memes',
'connected_items' => get_queried_object(),
'nopaging' => true,
) );
if ( $connected->have_posts() ) :
while ( $connected->have_posts() ) :
$connected->the_post();
$revista_header = get_field('revista_header');
$revista_permalink = get_permalink();
$revista_thumbnail = get_the_post_thumbnail(get_the_ID(),'small');
$revista_title = get_the_title();
endwhile;
wp_reset_postdata();
endif;
?>
<div class="page-title" style="background-image: url(<?php echo $revista_header["url"]; ?>);">
<div class="w-container">
<h2 class="page-title-subheading">MEME</h2>
<h1 class="post-title-heading"><?php the_title(); ?></h1>
<figure class="meme-detail">
<?php the_post_thumbnail('large'); ?>
</figure>
</div>
</div>
<?php endwhile; ?>