I followed the instructions provided here – https://docs.generatepress.com/article/using-columns-in-the-blog/#changing-the-number-of-columns, but I can’t get it to work. Here is my code.
add_filter( 'option_generate_blog_settings', function( $settings ) {
if ( is_post_type_archive( 'priorities' ) ) {
$settings['columns'] = '33';
}
return $settings;
} );
While troubleshooting, I also tried this code below which did work, but I don’t want to use the Customizer setting because I need the CPT to be different from the Posts.
add_filter( 'generate_blog_columns','tu_portfolio_columns' );
function tu_portfolio_columns( $columns ) {
if ( is_post_type_archive( 'priorities' ) ) {
return true;
}
return $columns;
}