# learnpress/4.3.9/templates/loop/course/thumbnail.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.9. 28 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.9/code/templates/loop/course/thumbnail.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.9/raw/templates/loop/course/thumbnail.php
- Modified: 2026-06-08T02:53:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.3.9/code/templates/loop/course/thumbnail.php#L10-L20`.

```php
<?php
/**
 * Template for displaying thumbnail of course within the loop.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/loop/course/thumbnail.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.0
 */

defined( 'ABSPATH' ) || exit();

$course = learn_press_get_course();

if ( ! $course ) {
	return;
}
?>

<div class="course-thumbnail">
	<a href="<?php the_permalink(); ?>">
<!--		<div class="thumbnail">-->
			<?php echo wp_kses_post( $course->get_image( 'course_thumbnail' ) ); ?>
<!--		</div>-->
	</a>
</div>

```
