Plugin Author
mrwweb
(@mrwweb)
Hi @gordo019.
Sorry to hear about your troubles.
What you’re seeing is the expected behavior of the plugin. Because people rely on their thumbnail setting for other places in the theme, I can’t assume that it will always be appropriate for use in any of the layouts.
However, there is a filter that lets you modify the widget output. You can see that other people are using it to solve image size issues.
Because you want to use an existing image size, your code snippet would be a little easier than the linked example:
// override the featured image with the thumbnail size image
function fpw_custom_featured_image( $featured_image, $featured_page_id ) {
return get_the_post_thumbnail( $featured_page_id, 'thumbnail' );
}
add_filter( 'fpw_featured_image', 'fpw_custom_featured_image', 10, 2 );
That should do it and you shouldn’t need to run regenerate thumbnails. Let me know if this works and I can mark this thread as resolved.
That did the trick. If the plugin had admin settings that would be a nice thumbnail option. A checkbox in the widget might be an alternative too. Though, might clutter the widget. What do you recommend for a Feature a Post Widget?
Plugin Author
mrwweb
(@mrwweb)
Glad I could help.
I’m thinking hard about options to add in future versions, so I’ll try to think about adding image size options down the road, probably in the widget itself.
If you have a moment, you can vote on future options you’d like to see. Those results will largely drive my decision-making. Based on your request, I added a “custom image sizing” option to the poll.
Regarding featured posts, I’m thinking about adding that to a future version (within the next month?). In the mean time, take a look at the second-to-last paragraph in the FAQ for suggestions. I’m not really thrilled with any of them, but Simple Featured Posts Widget is probably the closest.