wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



adjacent_image_link › WordPress Function

Depuis2.5.0
Dépréciéen/a
adjacent_image_link ( $prev = true, $size = 'thumbnail', $text = false )
Paramètres: (3)
  • (bool) $prev Optional. Whether to display the next (false) or previous (true) link. Default true.
    Requis: Non
    Défaut: 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'.
    Requis: Non
    Défaut: 'thumbnail'
  • (bool) $text Optional. Link text. Default false.
    Requis: Non
    Défaut: false
Défini(e) dans:
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 );
}