• YARPP generates links without visible images if the main post image is hidden.

    It is caused by the fact, that the main post image uses the same css class (“wp-post-image”) as the image thumbnails in get_the_post_thumbnail() used by YARPP. So I suggest changing template_thumbnails.php as follows to remove any classes assigned to the generated by get_the_post_thumbnail().

    $post_thumbnail_html = get_the_post_thumbnail( null, $dimensions[‘size’], array( ‘data-pin-nopin’ => ‘true’ ) );
    $post_thumbnail_html = preg_replace( ‘/(class)=”[^”]*”/’, ”, $post_thumbnail_html );

The topic ‘Suggession: remove’ is closed to new replies.