Home › Forums › Pro Support › Setting a custom image size for the featured post › Reply To: Setting a custom image size for the featured post
August 28, 2020 at 2:27 pm
#18700
Keymaster
We’re working on it right now, hopefully soon.
For now, you can find this line: https://github.com/tomusborne/wp-show-posts/blob/master/inc/functions.php#L193
And replace it with this:
the_post_thumbnail( apply_filters( 'wpsp_default_image_size', 'full', $settings ), array( 'itemprop' => 'image' ) );
Then your filter from up above would look like this:
add_filter( 'wpsp_default_image_size', function( $size, $settings ) {
if ( 123 === $settings['list_id'] && in_array( 'featured-column', get_post_class() ) ) {
return 'large';
}
return $size;
}, 10, 2 );
You just need to update 123
to the list ID of the list you’re targeting.