wpseek.com
A WordPress-centric search engine for devs and theme authors



adjacent_image_link › WordPress Function

Since2.5.0
Deprecatedn/a
adjacent_image_link ( $prev = true, $size = 'thumbnail', $text = false )
Parameters: (3)
  • (bool) $prev Optional. Whether to display the next (false) or previous (true) link. Default true.
    Required: No
    Default: true
  • (string|int[]) $size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'thumbnail'.
    Required: No
    Default: 'thumbnail'
  • (bool) $text Optional. Link text. Default false.
    Required: No
    Default: false
Defined at:
Codex:

Displays next or previous image link that has the same post parent.

Retrieves the current attachment object from the $post global.


Source

function adjacent_image_link( $prev = true, $size = 'thumbnail', $text = false ) {
	echo get_adjacent_image_link( $prev, $size, $text );
}