I’ve a publish sort referred to as households the place I add private data of every household, inside the information there’s an possibility referred to as standing.
*IMPORTANT: The fields are created with ACF CUSTOM FIELDS
These households are proven on one web page every. For instance
What I want is to exclude the households that do not need the standing Retained, and that aren’t proven or linked within the subsequent and again buttons.
in my code I’ve features get_next_post_link() and get_previous_post_link()
<?php
$older_link = get_next_post_link( '%hyperlink', '<i class="far fa-angle-right"></i>' );
$newer_link = get_previous_post_link( '%hyperlink', '<i class="far fa-angle-left"></i>' );
$earlier = '<span class="meta-nav">Earlier Put up</span>';
$subsequent = '<span class="meta-nav">Subsequent Put up</span>';
?>
<nav class="d-flex align-items-center navigation navigation-single">
<div class="arrows">
<?php echo $newer_link; ?>
<?php echo $older_link; ?>
</div>
</nav>
Thanks very a lot on your assist