mysociety / fixmyblock-wordpress

1 stars 1 forks source link

Thumbnails for post list items #30

Closed zarino closed 4 years ago

zarino commented 4 years ago

Post list items don’t currently display the page’s featured image. Which is a shame.

Screen Shot 2020-04-24 at 15 56 55

We’ll want to display a thumbnail, ideally in a square-ish aspect ratio, next to the title and excerpt, wherever the post list item is displayed.

(And if a post doesn’t have a featured image, I guess we’ll want to show a default thumbnail graphic?)

Might want to take this opportunity to set up custom image sizes for thumbnails and feature images, using add_image_size() and/or set_post_thumbnail_size()?

Might also want to let WordPress admins adjust the automatic thumbnail crops, so they can pick out the most visually pleasing part of each image, rather than just the centre? This plugin seems to handle that, maybe it’d work for us?