Skip to content

Fist post in loop

add_filter(
'post_class',
function ( $classes ) {
global $wp_query;
if( 0 == $wp_query->current_post )
$classes[] = 'first';
return $classes;
}
);