From e543cf588a8a9f5a92c3081f8d0cda5ef7b7d538 Mon Sep 17 00:00:00 2001 From: Ren <18050944+renintw@users.noreply.github.com> Date: Sun, 9 Jun 2024 23:48:14 +0800 Subject: [PATCH] 2024 Theme: Update the link of the second breadcrumb on a single lesson page to direct to the Course archive page. (#2523) --- wp-content/themes/pub/wporg-learn-2024/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/functions.php b/wp-content/themes/pub/wporg-learn-2024/functions.php index de00dcd20..2d64120b1 100644 --- a/wp-content/themes/pub/wporg-learn-2024/functions.php +++ b/wp-content/themes/pub/wporg-learn-2024/functions.php @@ -255,7 +255,7 @@ function set_site_breadcrumbs( $breadcrumbs ) { $post_type_object = get_post_type_object( 'course' ); $archive_title = $post_type_object->labels->name; - $archive_url = get_post_type_archive_link( $post_type ); + $archive_url = get_post_type_archive_link( 'course' ); $archive_breadcrumb = array( 'url' => $archive_url,