WPIntell

Source evidence

Image Size

Manual Related Posts · support · 2023-01-03T13:21:00+00:00

mixedsentiment
mediumseverity
0.78relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Dieter Geiling resolved
Is there any way to choose the size of the post image displayed with a filter or something? It would be great if I could choose my own image sizes. Best regards. Hi Dieter, The image size is determined in CSS. It is optimized to have 3 related posts with an image in the extended view. If you prefer 2 related posts, you could use it that way and have custom CSS added to Appearance > Customizer > Custom CSS. html body li.related-post.extended_view,html body li.related_du-post.extended_view { width: 48%; } Does that help you? This reply was modified 3 years, 4 months ago by Marcel Pol . This reply was modified 3 years, 4 months ago by Marcel Pol . Hi Marcel, I am interested in improving the loading time and therefore I would like to load my own thumbnails with suitable image size. I have seen that your plugin loads the image size “Medium”, which is already good. https://plugins.trac.wordpress.org/browser/related/tags/3.2.0/related.php#L346 My question was if I can load another image size, for example a custom one like “Small_large” via a filter? In some other plugins this is possible, hence my question. If not, I have already found a solution. I can specify the image size “Medium” so that it fits for me (280x210px). I then have to recreate the thumbnails but that’s OK. Hi Dieter, that is really great feedback, thank you. In the version 3.3.0 you can use a PHP filter to change the thumbnail size. function my_related_show_post_tn_size( $tn_size ) { return 'medium'; } add_filter( 'related_show_post_tn_size', 'my_related_show_post_tn_size' ); This reply was modified 3 years, 4 months ago by Marcel Pol . Hi Marcel, fantastic, it works like a charm! Super work! Thank you very much! This reply was modified 3 years, 4 months ago by Dieter Geiling . This reply was modified 3 years, 4 months ago by Dieter Geiling .

Comments

4 shown
Marcel Pol 2023-01-10T11:06:00+00:00

Hi Dieter, The image size is determined in CSS. It is optimized to have 3 related posts with an image in the extended view. If you prefer 2 related posts, you could use it that way and have custom CSS added to Appearance > Customizer > Custom CSS. html body li.related-post.extended_view,html body li.related_du-post.extended_view { width: 48%; } Does that help you? This reply was modified 3 years, 4 months ago by Marcel Pol . This reply was modified 3 years, 4 months ago by Marcel Pol .

Dieter Geiling 2023-01-10T12:32:00+00:00

Hi Marcel, I am interested in improving the loading time and therefore I would like to load my own thumbnails with suitable image size. I have seen that your plugin loads the image size “Medium”, which is already good. https://plugins.trac.wordpress.org/browser/related/tags/3.2.0/related.php#L346 My question was if I can load another image size, for example a custom one like “Small_large” via a filter? In some other plugins this is possible, hence my question. If not, I have already found a solution. I can specify the image size “Medium” so that it fits for me (280x210px). I then have to recreate the thumbnails but that’s OK.

Marcel Pol 2023-01-10T13:33:00+00:00

Hi Dieter, that is really great feedback, thank you. In the version 3.3.0 you can use a PHP filter to change the thumbnail size. function my_related_show_post_tn_size( $tn_size ) { return 'medium'; } add_filter( 'related_show_post_tn_size', 'my_related_show_post_tn_size' ); This reply was modified 3 years, 4 months ago by Marcel Pol .

Dieter Geiling 2023-01-10T16:19:00+00:00

Hi Marcel, fantastic, it works like a charm! Super work! Thank you very much! This reply was modified 3 years, 4 months ago by Dieter Geiling . This reply was modified 3 years, 4 months ago by Dieter Geiling .