Removing Links from BLog Post images on home page
hi,
i am trying to modify my vantage site so that all of the blog post images don't have links to the separate posts on the homepg and other category pages- i found the code in the 'views.php' file but i was wondering if anyone knew how to modify the echo html part so that it simply outputs the thumbnail image without adding a link to the post page aorund the image? I want people to click on the 'more' link and i have way too many links on each pg so im trying to remove the image links as its not necessary to have 4 links for eachpost on the home pg etc. If anyone knows how to modify the code below to simply output the images wihtout the link tags around the image please let me know
public function blog_featured_image() {
if ( has_post_thumbnail() ) {
echo html('a', array(
'href' => get_permalink(),
'title' => the_title_attribute(array('echo'=>0)),
), get_the_post_thumbnail( get_the_ID(), array( 420, 150 ), array( 'class' => 'alignleft' ) ) );
}
}
}