# learnpress/4.4.8/templates/single-course/meta/category.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 27 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/templates/single-course/meta/category.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/templates/single-course/meta/category.php
- Modified: 2026-09-18T11:22:50+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.4.8/code/templates/single-course/meta/category.php#L10-L20`.

```php
<?php
/**
 * Template for displaying categories of course in primary-meta section.
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 */

defined( 'ABSPATH' ) || exit;
?>

<div class="meta-item meta-item-categories">
	<div class="meta-item__value">
		<label><?php esc_html_e( 'Category', 'learnpress' ); ?></label>
		<div>
			<?php
			if ( ! get_the_terms( get_the_ID(), 'course_category' ) ) {
				esc_html_e( 'Uncategorized', 'learnpress' );
			} else {
				echo get_the_term_list( get_the_ID(), 'course_category', '', '<span>|</span>' );
			}
			?>
		</div>
	</div>
</div>

```
