抜粋がある記事がどうかをチェックする

Ads

Code

<?php
$my_excerpt = get_the_excerpt();
if($my_excerpt !='') {
the_excerpt();
}
?>
view raw gistfile1.aw hosted with ❤ by GitHub

Note

Description 抜粋を持った記事かどうかをチェックするコード
WordPress Ver. 3.3.1
Via Check if post has the_excerpt