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 {