模板标签-next_image_link()

0条评论

说明

该标签为当前文章附件中的下一幅图片生成链接。

用法

<?php next_image_link( [string $size = 'thumbnail'], [string $text = false] ); ?> 

示例

默认用法

<?php next_image_link(); ?>  

工作示例

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

参数

$size

(字符串)(可选)可选,默认值为thumbnail。表示图片的大小,值可为字符串或数组。若值为0或null,则默认为post_title或$text。

默认值:None

$text

(字符串)(可选)可选,默认值为false。若包含该参数,图片链接会反映出$text变量。

默认值:None

历史记录

  • 始见于WordPress 2.5.0版本。

相关资料

参见previous_image_link()。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.