Hello,
the code below works with WPML on both category archive pages but stops working when I turn on WPML string translations. Does anyone know why this could be? With a little check I could see that the code does still get past the first “if” but then the options aren’t applied. Has anyone else had this? Any suggestions welcome.
add_filter( 'option_generate_blog_settings', 'bw_custom_archive_page_settings' );
function bw_custom_archive_page_settings( $options ) {
if ( is_category( array( 8, 9 ) ) ) {
$options['post_image_alignment'] = 'post-image-aligned-left';
$options['post_image_size'] = 'medium';
$options['column_layout'] = false;
$options['featured_column'] = false;
$options['masonry'] = false;
}
return $options;
}