首页 WordPress函数大全 adjacent_image_link()

adjacent_image_link()

2020-05-01 / 4233阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

adjacent_image_link( bool $prev = true, string|array $size = 'thumbnail', bool $text = false )

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

描述

Retrieves the current attachment object from the $post global.

参数

$prev

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

Default value: true

$size

(string|array)
(Optional)
Image size. Accepts any valid image size, or an array of width and height values in pixels (in that order).

Default value: 'thumbnail'

$text

(bool)
(Optional)
Link text.

Default value: false

大家谈论
    我的见解