[Resolved] [Plugin: Yet Another Related Posts Plugin] Thumbnails of Related Posts
I have been attempting to link the post thumbnails with the related posts. I prefer to manipulate the background images with CSS, so I applied a code that strips the html tags from the php code. For that purpose I applied the following:
<?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'cia_post_thumb_ra_big'); $image_url = $image_url; ?>
Unfortunately when I apply this as a
background-imagein my CSS it retrieves the thumbnail source of the post the visitor is reading rather than the thumbnail sources of the related posts. The product of my attempts can be seen here.
Any help would be appreciated.
- The topic ‘[Resolved] [Plugin: Yet Another Related Posts Plugin] Thumbnails of Related Posts’ is closed to new replies.