Hello Tom!
Well, partially. It successfully inserts class ‘full-width-post’ into first three posts, but for some reason, it only shows full width posts only under <1000px display. Over 1000px, it shows first post full and rest as masonry.
But the main problem is, that when you click ‘More posts’ aka page 2, it displays another these 3 posts full-width again. And I don’t want it to.
EDIT: I resolved it with this code and it works.
<?php add_filter( 'post_class', 'tu_full_width_posts' );
function tu_full_width_posts( $classes ) {
global $wp_query;
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) :1;
if ( $wp_query->current_post < 3 && 1 == $paged ) {
$classes[] = 'width6';
}
return $classes;
}
?>
Btw your theme and support is absolutely great! π