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
查看更多 >