next_image_link

函式
next_image_link ( $size = 'thumbnail', $text = false )
引數
  • (string|int[]) $size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'thumbnail'.
    Required:
    Default: 'thumbnail'
  • (string|false) $text Optional. Link text. Default false.
    Required:
    Default: false
定義位置
相關方法
get_next_image_linkget_page_link_get_page_linkadjacent_image_linknext_comments_link
引入
2.5.0
棄用
-

next_image_link: 該函式返回當前文章或頁面中下一個圖片附件的連結。

顯示具有相同文章父本的下一個圖片連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function next_image_link( $size = 'thumbnail', $text = false ) {
echo get_next_image_link( $size, $text );
}
function next_image_link( $size = 'thumbnail', $text = false ) { echo get_next_image_link( $size, $text ); }
function next_image_link( $size = 'thumbnail', $text = false ) {
	echo get_next_image_link( $size, $text );
}

常見問題

FAQs
檢視更多 >