tests on previous next posts
This commit is contained in:
parent
1426f52631
commit
257f0d50f0
|
|
@ -46,28 +46,31 @@ $pageIcon = get_field('step_icon', $post->ID);
|
|||
$prev_thumbnail_url = get_the_post_thumbnail_url($prev_post, 'thumbnail');
|
||||
$prev_page_icon = get_field('step_icon', $prev_post->ID) ?? null;
|
||||
$next_page_icon = get_field('step_icon', $next_post->ID) ?? null;
|
||||
|
||||
$test = get_parcours_previous_next_posts($post);
|
||||
?>
|
||||
|
||||
<?php if ($next_post) : ?>
|
||||
<a class="previous-next-parcours__next" href="<?php echo get_the_permalink($next_post->ID) ?>">
|
||||
<div class="previous-next-parcours__link-content">
|
||||
<p class="post_denomination"><?php echo __("Étape suivante ", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||
<p class="post_title"><?php echo $next_post->post_title ?></p>
|
||||
</div>
|
||||
<img class="page_icon" src="<?php echo $next_page_icon['url'] ?>" alt="">
|
||||
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($prev_post) : ?>
|
||||
<a class="previous-next-parcours__previous" href="<?php echo get_the_permalink($prev_post->ID) ?>">
|
||||
<img class="page_icon" src="<?php echo $prev_page_icon['url'] ?>" alt="">
|
||||
|
||||
<div class="previous-next-parcours__link-content">
|
||||
<p class="post_denomination"><?php echo __("Étape précédente ", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||
<p class="post_title"><?php echo $prev_post->post_title ?></p>
|
||||
</div>
|
||||
<img class="page_icon" src="<?php echo $prev_page_icon['url'] ?>" alt="">
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($next_post) : ?>
|
||||
<a class="previous-next-parcours__next" href="<?php echo get_the_permalink($next_post->ID) ?>">
|
||||
<img class="page_icon" src="<?php echo $next_page_icon['url'] ?>" alt="">
|
||||
<div class="previous-next-parcours__link-content">
|
||||
<p class="post_denomination"><?php echo __("Étape suivante ", "homegrade-theme__texte-fonctionnel") ?></p>
|
||||
<p class="post_title"><?php echo $next_post->post_title ?></p>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user