Codex

Template Tags/next image link

Contents

Description

This creates a link to the next image attached to the current post.

Usage

 <?php next_image_link( [string $size 'thumbnail'], [string $text false] ); ?> 

Examples

Default Usage

<?php next_image_link(); ?>

Working example

 <div class="alignright"><?php next_image_link() ?></div>

Parameters

$size
(string) (optional) Optional, default is thumbnail. Size of image, either array or string. 0 or none will default to post_title or $text.
Default: None
$text
(string) (optional) Optional, default is false. If included, link will reflect $text variable.
Default: None

Change Log

Since: 2.5.0

Related

See also previous_image_link()

See also index of Function Reference and index of Template Tags.