Home"; } else if (!is_home()) { echo 'Home' . $separator; if (is_archive()) { if (is_category()) { // If it's a category archive page echo ""; single_cat_title(); echo ""; } elseif (is_tag()) { // If it's a tag archive page echo ""; single_tag_title(); echo ""; } elseif (is_date()) { // If it's a date-based archive page echo ""; echo get_the_date('F Y'); echo ""; } elseif (is_author()){ echo 'Author: '; the_author(); echo ''; } else { // For other archive pages, you can customize this part echo post_type_archive_title() . $separator; } } elseif (is_category() || is_single()) { // For regular posts or category pages the_category(', '); echo $separator; // Add the separator here if (is_single()) { echo ""; the_title(); echo ""; } } elseif (is_page()) { // For regular pages echo ""; the_title(); echo ""; } // Search results elseif (is_search()) { echo 'Search Results for: ' . get_search_query() . ''; } else if(is_404()){ echo "404"; } else{ echo ""; the_title(); echo ""; } } }