Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$my_excerpt = get_the_excerpt(); | |
if($my_excerpt !='') { | |
the_excerpt(); | |
} | |
?> |
Note
Description | 抜粋を持った記事かどうかをチェックするコード |
---|---|
WordPress Ver. | 3.3.1 |
Via | Check if post has the_excerpt |