Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Length excerpts only first article Reply To: Length excerpts only first article

#17693
Tom
Keymaster

Hi there,

Not sure if this will work, but you could try:

add_filter( 'excerpt_length', function( $length ) {
    if ( is_page( 'Your page title' ) ) {
        global $wp_query;

        if ( 0 === $wp_query->current_post ) {
            return 200; // Whatever the length you need for the first post.
        }
    }

    return $length;
}, 999 );