WordPress display excerpt if not empty Display excerpt only if it is not empty: <?php if ( has_excerpt( get_the_id() ) ){ echo get_the_excerpt(); } ?>
where is input code??
You can put this code into theme's function.php file.