Skip to content

Commit

Permalink
2024 Theme: Update the link of the second breadcrumb on a single less…
Browse files Browse the repository at this point in the history
…on page to direct to the Course archive page. (#2523)
  • Loading branch information
renintw authored Jun 9, 2024
1 parent 2fd397a commit e543cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/themes/pub/wporg-learn-2024/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e543cf5

Please sign in to comment.