Plugin Author
Brecht
(@brechtvds)
What is the image size set to on the Settings > Custom Related Posts > Template page?
We basically just use the default WordPress get_the_post_thumbnail function to request the size you put there. Depending on the image thumbnails that have been generated (by WordPress), we can only output what’s available.
Thread Starter
unklee
(@unklee)
Thanks for replying so promptly. The image is set to 200×100 in settings and there is an image of that size in the Uploads folder. But it shows at 144×72 and there is no image of that size (but images of about 6 other sizes). All other images are the same, but they show correctly.
I have tried changing images (e.g. copying an image that is showing correctly), re-loading images, changing the order, etc, but always the reduced size. It’s very strange. But don’t worry too much, I can cope with the inconsistency, and it may be something on my site rather than in the plugin.
Plugin Author
Brecht
(@brechtvds)
I missed the link to the problem earlier. Just had a look and it’s indeed using the correct thumbnail, but just shrinking the image to make some more space for the long title.
Could you try adding this to the “CSS” setting in the Template section I mentioned earlier?
.crp-list-item-image {
flex-shrink: 0;
}
Thread Starter
unklee
(@unklee)
Interesting. I did note that the heading was very long, and that proved to be the answer.
For some reason, when I tried to add that code to the settings, it wouldn’t save (probably nothing to do with the plugin, more likely because I am in Australia and my host is in US, and there was some glitch along the way). But I simply added the code to my child theme CSS and that was fine.
Thanks for that prompt response. I have learnt something!