get_the_excerpt()

関数の概要

WordPressのget_the_excerpt()関数は、現在の投稿の抜粋を取得するための関数です。投稿の抜粋は、投稿の内容の要約部分を示すものであり、通常は本文の先頭部分が表示されます。

パラメータの説明

  • なし

戻り値

現在の投稿の抜粋を取得します。

使用例


$excerpt = get_the_excerpt();
echo $excerpt;

関連する関数

  • the_excerpt() – 現在の投稿の抜粋を表示する関数