wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



adjacent_image_link › WordPress Function

Da2.5.0
Deprecaton/a
adjacent_image_link ( $prev = true, $size = 'thumbnail', $text = false )
Parametri: (3)
  • (bool) $prev Optional. Whether to display the next (false) or previous (true) link. Default true.
    Richiesto: 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'.
    Richiesto: No
    Default: 'thumbnail'
  • (bool) $text Optional. Link text. Default false.
    Richiesto: No
    Default: false
Definito a:
Codex:

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

Retrieves the current attachment object from the $post global.


Sorgenti

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