HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/retoti4c1e1s/www/longevitystructures.com/wp-content/themes/codate/includes/mag-nextprev.php
<div id="post_nav" class="p-border">
    <?php $prevPost = get_previous_post(false);// false = all categories
        if($prevPost) {
            $args = array(
                'posts_per_page' => 1,
                'include' => $prevPost->ID
            );
            $prevPost = get_posts($args);
            foreach ($prevPost as $post) {
                setup_postdata($post);
    ?>
        <div class="post_nav_item post_nav_prev tranz p-border">
            <span class="post_nav_arrow">&larr;</span>
        	<a href="<?php codate_permalink(); ?>">
        		<?php the_post_thumbnail('thumbnail');?>
            </a>
            <a class="post_nav_text" href="<?php codate_permalink(); ?>"><span class="post_nav_label"><?php esc_html_e('Previous Story','codate');?></span><br/><?php the_title(); ?></a>
        </div>
    <?php
                wp_reset_postdata();
            } //end foreach
        } // end if
         
        $nextPost = get_next_post(false);// false = all categories
        if($nextPost) {
            $args = array(
                'posts_per_page' => 1,
                'include' => $nextPost->ID
            );
            $nextPost = get_posts($args);
            foreach ($nextPost as $post) {
                setup_postdata($post);
    ?>
        <div class="post_nav_item post_nav_next tranz p-border">
            <span class="post_nav_arrow">&rarr;</span>
        	<a href="<?php codate_permalink(); ?>">
        		<?php the_post_thumbnail('thumbnail');?>
            </a>
            <a class="post_nav_text" href="<?php codate_permalink(); ?>"><span class="post_nav_label"><?php esc_html_e('Next Story','codate');?></span><br/><?php echo the_title(); ?></a>
        </div>
    <?php
                wp_reset_postdata();
            } //end foreach
        } // end if
    ?>
</div>