Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to remove excerpt on blog page?
add_filter( 'the_excerpt', 'ast_custom_blog_remove_excerpt' );
function ast_custom_blog_remove_excerpt( $content ) {
/* If it is blog page then set $content empty. */
if ( is_home() ) {
$content = '';
}
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment