Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Problem with post thumbnails (3 posts)

  1. lundj
    Posted 6 years ago #

    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

    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'); ?>
    		<?php endif;?>
    	<?php endwhile; ?>
    <?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

  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 6 years ago #

    @lundj, I believe this is more of a post thumbnail question, so I just added that tag here. Hope you get an answer.

  3. lundj
    Posted 6 years ago #

    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/

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic