next_image_link

Sponsored Link

これは、現在のポストに添付された次の画像へのリンクを作成します。

Sponsored Link

This creates a link to the next image attached to the current post.

next_image_linkのテンプレートタグ使用方法

<?php next_image_link( $size, $text ); ?> 

next_image_linkのパラメーター

$size

(string) (optional) 画像のサイズ、配列または文字列。 0またはnoneは、post_titleまたは$textがデフォルトです。

(string) (optional) Size of image, either array or string. 0 or none will default to post_title or $text.

Default: thumbnail

$text

(string) (optional) もしインクルードされた場合は、リンクは$text変数が反映されます。

(string) (optional) If included, link will reflect $text variable.

Default: false

デフォルトの使い方

<?php next_image_link(); ?>

作業の例

<?php next_image_link() ?>

変更ログ

Since: 2.5.0
2.8に2つのパラメーターが追加されました。: $size と $text

関連テンプレートタグ

See also previous_image_link()

Sponsored Link