andymacdonalduk
Member
Posted 1 year ago #
Hey Guys,
I would like to display a link to the next image on my image.php page. I believe the piece of code I need to use is <?php next_image_link() ?>, but that is outputting the image of the next post.
All I want is a link which reads "Next Image" which links to the next image. Same for the previous image.
Is that possible, without the actual image of the next post showing up please?
http://codex.wordpress.org/Function_Reference/next_image_link
Not a lot of info there, so I'm guessing here
<?php next_image_link( none, 'Next Image'); ?>
<?php next_image_link( false, 'Next Image' ); ?>
<?php next_image_link( 0, 'Next Image' ); ?>
something like that, one (or all of them) should work?
http://codex.wordpress.org/Template_Tags/previous_image_link
is related, but has more info
andymacdonalduk
Member
Posted 1 year ago #
Ah, that did the job perfectly. Thank you very much sir.
Glad it worked out! You're very welcome!!