Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to link my thumbnail image that is displayed by the list-category-post plugin on this page... http://elizabeth.vernetti.com/featured-properties/

I am using a custom template and have managed to get it linked to "#" using this code.

 //Post Thumbnail
$lcp_display_output .= '<a href="#">';
$lcp_display_output .= $this->get_thumbnail($single);
$lcp_display_output .= '</a>';

I know there is a way to use the_permalink to link it properly to the right post but I haven't been able to figure out the right syntax... i don't have much programming background.

Thanks for any help.

share|improve this question

2 Answers 2

Have you tried replacing get_thumbnail with:

<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_post_thumbnail(); ?></a>
share|improve this answer

Since version 0.19.1 of List Category Posts, the thumbnail links to the post.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.