the_excerpt_embed

函式
the_excerpt_embed ( No parameters )
定義位置
相關方法
the_excerptthe_excerpt_rssget_the_excerptthe_content_feedhas_excerpt
引入
4.4.0
棄用
-

the_excerpt_embed – 這個函式與the_excerpt相似,但專門用於嵌入式內容。它允許嵌入式內容以一種緊湊的格式顯示。

顯示嵌入模板的文章摘錄。

旨在用於”The Loop”中。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_excerpt_embed() {
$output = get_the_excerpt();
/**
* Filters the post excerpt for the embed template.
*
* @since 4.4.0
*
* @param string $output The current post excerpt.
*/
echo apply_filters( 'the_excerpt_embed', $output );
}
function the_excerpt_embed() { $output = get_the_excerpt(); /** * Filters the post excerpt for the embed template. * * @since 4.4.0 * * @param string $output The current post excerpt. */ echo apply_filters( 'the_excerpt_embed', $output ); }
function the_excerpt_embed() {
	$output = get_the_excerpt();

	/**
	 * Filters the post excerpt for the embed template.
	 *
	 * @since 4.4.0
	 *
	 * @param string $output The current post excerpt.
	 */
	echo apply_filters( 'the_excerpt_embed', $output );
}

常見問題

FAQs
檢視更多 >