I would like to add a check on the following piece of code that shows the arrows next/prev only if the next/prev image exists:
<div class="gallery-image"> <p class="attachment"> <img src="<?php echo $att_image;?>" width="<?php echo $att_image;?>" height="<?php echo $att_image;?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /> <span class="nav arrow previous"> <?php previous_image_link(false); ?> </span> <span class="nav arrow next"> <?php next_image_link(false); ?> </span> </p> </div>
This is an example of last image of a gallery so the next arrow shouldn't appears.
If you have any suggestions, please show me the right way to implement this behaviour :)
Thanks in advance,