I have a CPT to which I’ve added support for the default WP category taxonomy. I’m able to successfully add those CPT posts to post queries on the front end (including the category archives) by use of the this code:
add_action( 'pre_get_posts', function ( $query ) {
if ( ! is_admin() && $query->is_main_query() )
$query->set( 'post_type', array( 'post', 'typewheel_snippet' ) );
return $query;
} );
However, doing so, makes the masonry fail on these archive pages. I’ve not been able to pinpoint why this is. I appreciate any leads. Thanks!