# learnpress/4.4.8/templates/global/breadcrumb.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/templates/global/breadcrumb.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/templates/global/breadcrumb.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/global/breadcrumb.php#L10-L20`.

```php
<?php
/**
 * Template for displaying archive courses breadcrumb.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/global/breadcrumb.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.2
 */

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

if ( empty( $breadcrumb ) ) {
	return;
}
echo wp_kses_post( $wrap_before );

foreach ( $breadcrumb as $key => $crumb ) {

	echo wp_kses_post( $before );

	echo '<li>';

	if ( ! empty( $crumb[1] ) ) {
		printf( '<a href="%s"><span>%s</span></a>', esc_url_raw( $crumb[1] ), esc_html( $crumb[0] ) );
	} else {
		echo '<span>' . esc_html( $crumb[0] ) . '</span>';
	}

	echo '</li>';

	echo wp_kses_post( $after );

	if ( sizeof( $breadcrumb ) !== $key + 1 ) {
		echo wp_kses_post( $delimiter );
	}
}

echo wp_kses_post( $wrap_after );

```
