the_post_thumbnail_caption

函数
the_post_thumbnail_caption ( $post = null )
参数
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
    Required:
    Default: null
定义位置
相关方法
get_the_post_thumbnail_captionthe_post_thumbnailthe_post_thumbnail_urlget_post_thumbnail_idthe_post_navigation
引入
4.6.0
弃用
-

post_thumbnail_caption是一个WordPress函数,用于显示当前文章或指定文章的特色图像的标题。

显示文章缩略图的标题。

function the_post_thumbnail_caption( $post = null ) {
	/**
	 * Filters the displayed post thumbnail caption.
	 *
	 * @since 4.6.0
	 *
	 * @param string $caption Caption for the given attachment.
	 */
	echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 16:32:56

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: