Top Posts Widget: allow non-square image sizes #3682
Labels
[Feature] Extra Sidebar Widgets
[Feature] Stats Data
Feature that enables users to track their site's traffic and gain insights on popular content.
Good For Community
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
[Type] Good First Bug
As explained in this tutorial, the
jetpack_top_posts_widget_image_options
filter allows one to change the size of the image used in the Top Posts widget.Unfortunately,
$get_image_options['avatar_size']
only accepts a single integer, and a square image is built from that value.It would be nice if one could define an array of image width and image height instead, so the Top Posts images could be rectangular.
Suggested here:
https://wordpress.org/support/topic/chnage-size-of-post-thumbnails-jetpack-popular-post-widget?replies=1&view=all
The text was updated successfully, but these errors were encountered: