whanklee replied
Hi there,
I've solved it with the following codes:
//======================================================================
// Add excerpts after title
//======================================================================
function excerpts_after_title_in_post($content){
if ( is_single() && ! is_admin() ) {
if ( has_excerpt() ) {
$excerpt = get_the_excerpt();
$content = '<h3 class="excerpt-box">' . $excerpt . '</h3>' . $content;
}
}
return $content;
}
add_filter( "the_content", "excerpts_after_title_in_post" );