投稿ページのサムネイルキャプションを取得して出力— WordPress備忘録 —

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<figcaption><?php $caption = get_the_post_thumbnail_caption( $_post ); echo $caption; ?></figcaption>
<figcaption><?php $caption = get_the_post_thumbnail_caption( $_post ); echo $caption; ?></figcaption>
<figcaption><?php $caption = get_the_post_thumbnail_caption( $_post ); echo $caption; ?></figcaption>

 

ページトップへ移動