WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.