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 );
Thanks again for the great support (also on Sundays :-))
That unfortunately did not work. I entered “Start” as the page, the name of my homepage. I also tried “Home”. Unfortunately without success.
It’s about the home page. There I use wp-show-post. And only in the first post should the excerpt be longer (see screenshot) Is there an idea?