diff --git a/includes/class-wc-breadcrumb.php b/includes/class-wc-breadcrumb.php index 8959ed6ca7b..3d41e980e65 100644 --- a/includes/class-wc-breadcrumb.php +++ b/includes/class-wc-breadcrumb.php @@ -100,7 +100,7 @@ class WC_Breadcrumb { // If permalinks contain the shop page in the URI prepend the breadcrumb with shop if ( $shop_page_id && $shop_page && strstr( $permalinks['product_base'], '/' . $shop_page->post_name ) && get_option( 'page_on_front' ) != $shop_page_id ) { - $this->add_crumb( $shop_page->post_title, get_permalink( $shop_page ) ); + $this->add_crumb( get_the_title( $shop_page ), get_permalink( $shop_page ) ); } }