'; // Home link $output .= '' . esc_html($home_text) . ''; $output .= '' . esc_html($separator) . ''; // Check if it's a single post if (is_single()) { // Get the category $categories = get_the_category(); if ($categories) { $category = $categories[0]; $output .= '' . esc_html($category->name) . ''; $output .= '' . esc_html($separator) . ''; } // Post title $output .= '' . esc_html(get_the_title()) . ''; } elseif (is_category()) { // Category archive $output .= '' . esc_html(single_cat_title('', false)) . ''; } elseif (is_page()) { // Standard page $output .= '' . esc_html(get_the_title()) . ''; } elseif (is_search()) { // Search results $output .= '' . esc_html__('Search Results', 'abcbiz-addons') . ''; } elseif (is_404()) { // 404 page $output .= '' . esc_html__('404 Not Found', 'abcbiz-addons') . ''; } $output .= ''; return $output; } } ?>