Levdbas
2/23/2017 - 11:42 AM

Custom loop navigatie (volgende en vorige)

Custom loop navigatie (volgende en vorige)

  <?php
            $next_post = get_next_post();
            $prev_post = get_previous_post();
            $next_id = $next_post->ID;
            $prev_id = $prev_post->ID;
            $current_id = get_the_ID();
            $next_id = $next_post->ID;
            $previous_id = $prev_post->ID;
        ?>
        <a class="arrow left hidden-xs" href="<?php echo get_permalink( $next_id); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i>
volgende bericht</a> |
        <a class="arrow right hidden-xs" href="<?php echo get_permalink( $previous_id); ?>">vorige bericht <i class="fa fa-arrow-right" aria-hidden="true"></i>
</a>