Displays next image link that has the same post parent.
Parameters
$size
string|int[]optional- Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default
'thumbnail'
.Default:
'thumbnail'
$text
string|falseoptional- Link text.
Default:
false
Source
function next_image_link( $size = 'thumbnail', $text = false ) {
echo get_next_image_link( $size, $text );
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Basic Example