next_image_link() - WordPress 函数参考中文文档

返回介绍

next_image_link()

发布于 2017-09-11 字数1802 浏览 757 评论 0

next_image_link( string|array $size = 'thumbnail',  string $text = false )

Displays next image link that has the same post parent.


描述


参数

$size

(string|array)
(Optional)
Image size. Accepts any valid image size, an array of width and height values in pixels (in that order), 0, or ‘none’. 0 or ‘none’ will default to ‘post_title’ or $text.

Default value: ‘thumbnail’

$text

(string)
(Optional)
Link text.

Default value: false


源代码

File: wp-includes/media.php

function next_image_link( $size = 'thumbnail', $text = false ) {
	adjacent_image_link(false, $size, $text);
}

更新日志

Version 描述
2.5.0 Introduced.

相关函数

Uses

  • wp-includes/media.php:
    adjacent_image_link()

User Contributed Notes

  1. Skip to note content

    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note

    Contributed by Codex

    Basic Example

    
    <div class="alignright"><?php next_image_link(); ?></div>
    

上一篇:next_comments_link()

下一篇:next_post()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!