Example 1 — Show a text link
Print a simple previous image link.
<div class="image-nav">
<?php previous_image_link( false, '« Previous image' ); ?>
</div> How It Works
- When you give link text, the image size is not used.
- The text becomes the clickable link.
- The link goes to the previous attachment page.

