WordPress at a glance

next_image_link() WP 1.0

Displays next image link that has the same post parent.

Works based on: adjacent_image_link()

No Hooks.


null. Nothing.


next_image_link( $size, $text );
Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
Default: 'thumbnail'
Link text.
Default: false


  • See: adjacent_image_link()


Since 2.5.0 Introduced.

Code of next_image_link() WP 5.7.2

function next_image_link( $size = 'thumbnail', $text = false ) {
	adjacent_image_link( false, $size, $text );

From tag: image (not thumbnails funcs)

More from tag: Link (tag A in HTML)

More from category: Images

More from Template Tags: Posts, Pages, ...

No comments
    Log In