wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



adjacent_image_link › WordPress Function

Seit2.5.0
Veraltetn/v
adjacent_image_link ( $prev = true, $size = 'thumbnail', $text = false )
Parameter: (3)
  • (bool) $prev Optional. Whether to display the next (false) or previous (true) link. Default true.
    Erforderlich: Nein
    Standard: 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'.
    Erforderlich: Nein
    Standard: 'thumbnail'
  • (bool) $text Optional. Link text. Default false.
    Erforderlich: Nein
    Standard: false
Definiert in:
Codex:

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

Retrieves the current attachment object from the $post global.


Quellcode

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