How to make Next and Previous attached image navigation on the attachment page?
‘ . __( ‘Previous Image’, ‘$text_domain’ ) . ” ); ?>
‘ . __( ‘Next Image’, ‘$text_domain’ ) . ” ); ?>
working great 🙂
How to make Next and Previous attached image navigation on the attachment page?
‘ . __( ‘Previous Image’, ‘$text_domain’ ) . ” ); ?>
‘ . __( ‘Next Image’, ‘$text_domain’ ) . ” ); ?>
working great 🙂
Use previous_image_link
and next_image_link
in a image.php or attachment.php file.
<nav id="image-navigation" class="navigation image-navigation">
<div class="nav-links">
<?php previous_image_link( false, '<div class="previous-image">' . __( 'Previous Image', '$text_domain' ) . '</div>' ); ?>
<?php next_image_link( false, '<div class="next-image">' . __( 'Next Image', '$text_domain' ) . '</div>' ); ?>
</div><!-- .nav-links -->
</nav><!-- #image-navigation -->
Source: Twenty Fourteen