I have looked everywhere, tried to apply filters but it doesn’t work.
In the blog settings I am displaying images left aligned, above titles and with a certain width. On the blog page only though I want to display posts in 4 columns with the images center aligned. I tried adding a filter:
add_filter( 'generate_blog_columns','gm_blog_column_count' );
function gm_blog_column_count( $count ) {
if ( is_home() ) {
return 25;
}
return $count;
}
Does it not work because the filter is only for custom post types?
Also I am using post images of 1200x400px but for all the archives pages(including the blog) I would like to have them center cropped and have a fixed height of 200px. The blog settings only allow me to set width dimensioans with the height automcatically set to auto, whatever value I enter for the height image attribute.