adjacent_image_link() wordpress function and usage This text is not used because the data attribute has a value

adjacent_image_link() wordpress function and usage

Home / WordPress / WordPress Wiki / adjacent_image_link() wordpress function and usage

adjacent_image_link( bool $prev = true, string|int[] $size = 'thumbnail', bool $text = false )
Displays next or previous image link that has the same post parent.

Description

Retrieves the current attachment object from the $post global.

Parameters

$prev

(bool) (Optional) Whether to display the next (false) or previous (true) link.

Default value: true

$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 value: ‘thumbnail’

$text

(bool) (Optional) Link text.

Default value: false

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments