From 8f06c093a8dac32e46ebd5ce11816d69f8086b8e Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Tue, 16 Sep 2025 14:55:54 -0400 Subject: [PATCH] fix: front page breadcrumb --- wp-content/themes/ccat/includes/graphql/breadcrumbs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/ccat/includes/graphql/breadcrumbs.php b/wp-content/themes/ccat/includes/graphql/breadcrumbs.php index a613b3c..529b5d1 100644 --- a/wp-content/themes/ccat/includes/graphql/breadcrumbs.php +++ b/wp-content/themes/ccat/includes/graphql/breadcrumbs.php @@ -78,7 +78,7 @@ function ccat_get_breadcrumbs( $node ) { // Helper: Get breadcrumbs for a given post function ccat_get_post_breadcrumbs( WP_Post $post ) { $breadcrumbs = array(); - $is_front_page = get_option( 'show_on_front' ) === 'page' && get_option( 'page_on_front' ) === $post->ID; + $is_front_page = get_option( 'show_on_front' ) === 'page' && (int) get_option( 'page_on_front' ) === $post->ID; if ( $is_front_page ) { return $breadcrumbs; // No breadcrumbs for the front page } else {