get_next_item will return the next item in archive, relative to a specific item.
Usage
<?php get_next_item($item); ?>
Arguments
- $item - The item object for which you want to get the next item. If null, the current item available will be used.
Examples
The following example, which can be used on the items/show.php template in any theme, will get the next item, and display the title, description, and link for it. We'll pass the `$nextItem` object we create to the link_to_item and item helpers, to display its metadata.
<?php $nextItem = get_next_item(); // No argument b/c we want the current item. if($nextItem): ?> <h2><?php echo link_to_item(null, array(), 'show', $nextItem); ?></h2> <p><?php echo item('Dublin Core', 'Description', array(), $nextItem); ?></p> <?php endif; ?>

