Title: [Plugin: Yet Another Related Posts Plugin] Problem with post thumbnails
Last modified: August 19, 2016

---

# [Plugin: Yet Another Related Posts Plugin] Problem with post thumbnails

 *  [lundj](https://wordpress.org/support/users/lundj/)
 * (@lundj)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-problem-with-post-thumbnails/)
 * Hi!
    For me its not possible, to add hard-cropped Post-Thumbnails of the related
   Posts on my site.
 * For example: [http://wp.ludwig-jahn-design.de/kultur/filme/die-blechtrommel/#aehnlich](http://wp.ludwig-jahn-design.de/kultur/filme/die-blechtrommel/#aehnlich)
 * The thumbnails are shown, but not hard-cropped… My Code in the yarpp-Template:
 *     ```
       <?php if ($related_query->have_posts()):?>
       <div id="aehnlich">
       	<h5>Beiträge, die Sie auch interessieren könnten</h5>
       	<?php while ($related_query->have_posts()) : $related_query->the_post(); ?>
       		<?php if (has_post_thumbnail()):?>
       		<div class="aehnlich_pic">
       			<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
       			<?php the_post_thumbnail('related'); ?>
       			</a>
       		</div>
       		<?php endif;?>
       	<?php endwhile; ?>
       </div>
       <?php endif; ?>
       ```
   
 * In the functions.php there is the line for resizing and cropping the thumbnails:
 * `add_image_size( 'related', 72, 72, true);`
 * Can you help me out?
 * Greetings from Germany
    lundj

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-problem-with-post-thumbnails/#post-1590322)
 * [@lundj](https://wordpress.org/support/users/lundj/), I believe this is more 
   of a post thumbnail question, so I just added that tag here. Hope you get an 
   answer.
 *  Thread Starter [lundj](https://wordpress.org/support/users/lundj/)
 * (@lundj)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-problem-with-post-thumbnails/#post-1590472)
 * Has anyone an answer for me?
 * There is a hint on this site: [http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/](http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/)
 * The autor of this post explains how to hard-crop post-thumbnails to another size
   than the standard set_post_thumbnail_size( X, X, true );
 * Greetings from Germany
    lundj

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Yet Another Related Posts Plugin] Problem with post thumbnails’
is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [lundj](https://wordpress.org/support/users/lundj/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-problem-with-post-thumbnails/#post-1590472)
 * Status: not resolved