Adding thumbnail size and link
-
I’m posting this in-case anyone is want to use the thumbnail size using thumbnail=yes and have it work as a link.
In CatList.php change the
public function get_thumbnail
From:
$lcp_thumbnail = get_the_post_thumbnail($single->ID);
To:
$lcp_thumbnail = '<a href="' . get_permalink( $single->ID ) . '">' . get_the_post_thumbnail($single->ID, 'thumbnail') . '</a>';
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Adding thumbnail size and link’ is closed to new replies.