1) One quick way to do this is to trim the excerpt specifically on the home page, something like this in your functions.php
file:
add_filter( 'nooz_post_data', function( $post_data ) {
if ( is_front_page() ) $post_data['excerpt'] = wp_trim_words( $post_data['excerpt'], 10, '...' );
return $post_data;
} );
2) However if you want specifically different excerpts for home vs everywhere else you can enable ‘custom-fields’ for press releases/coverage and create a custom field. In the example below you could add a new custom field named my_alt_excerpt
which is only used on the front-page. Something like this in your functions.php
file:
add_filter( 'nooz/post-types/nooz_release/options', 'my_enable_custom_fields' );
add_filter( 'nooz/post-types/nooz_coverage/options', 'my_enable_custom_fields' );
function my_enable_custom_fields( $options ) {
$options['supports'][] = 'custom-fields';
return $options;
}
add_filter( 'nooz_post_data', function( $post_data ) {
if ( ! is_front_page() ) return $post_data;
global $post;
$alt_excerpt = get_post_meta( $post->ID, 'my_alt_excerpt', TRUE );
$post_data['excerpt'] = $alt_excerpt ?: wp_trim_words( $post_data['excerpt'], 10, '...' );
return $post_data;
} );