Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am hoping that someone can help me - How can I set the Class on the Thumbnail images?

I have looked here: In the catList.php file

 $lcp_thumbnail = '<a href="' . get_permalink($single->ID).'">' . get_the_post_thumbnail($single->ID, $this->params['thumbnail_size']) . '</a>';

The default class on the thumbnail looks like this - class="attachment-thumbnail wp-post-image"

It would be great to set the class on the thumbnail image, via the shortcode.


share|improve this question

1 Answer 1

This feature was implemented on List Category Posts version 0.21 :)

thumbnail_class - Set a CSS class to the thumbnail and style it.

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.