Archived topic
Column issues since recent upgrade
5 replies · Started by Craig on September 15, 2020
Hello,
Have been using some column code for 2 archive pages for some time and a recent update appears to have broken it.
Here's a link to a broken archive: https://www.sacsschools.org/staff
The code I'm using to force columns is...
add_filter( 'generate_blog_columns','generate_adjust_columns' );
function generate_adjust_columns( $columns )
{
if ( is_post_type_archive (array ( 'staff', 'documents' )) ) :
return true;
endif;
return $columns;
}
As you can see, the height of a few of the staff listings is taller than the rest and this causes a strange shift/break in the rows.
Here's an older version of the site where it's working correctly: http://spmsacs.staging.wpengine.com/staff
Any suggestions?
Thanks!
Craig
Hi there,
Thanks for the heads up! Fixed in 1.12.0-alpha.2 which we'll be releasing tomorrow.
For now, try this CSS:
.generate-columns-container:not(.masonry-container) {
display: flex;
flex-flow: row wrap;
align-items: stretch;
}
I'll update you once 1.12.0-alpha.2 is available - would be nice to confirm that it's fixed.
Thanks again!
Hey Tom...awesome...that CSS did the trick. Thanks...I'll keep an eye out for the updates!
No problem! alpha.2 is now available which should fix the issue without the need for the extra CSS :)
Thanks Tom! Any ETA on the next production version push? If you think in the next week, I'll wait for the 20+ sites this affects.
Best,
Craig
Yea, hoping for next week :)