name); } elseif (is_post_type_archive()) { return apply_filters('the_title', get_queried_object()->labels->name); } elseif (is_day()) { return sprintf(__('Daily Archives: %s', 'bootstrap-x'), get_the_date()); } elseif (is_month()) { return sprintf(__('Monthly Archives: %s', 'bootstrap-x'), get_the_date('F Y')); } elseif (is_year()) { return sprintf(__('Yearly Archives: %s', 'bootstrap-x'), get_the_date('Y')); } elseif (is_author()) { $author = get_queried_object(); return sprintf(__('Author Archives: %s', 'bootstrap-x'), $author->display_name); } else { return single_cat_title('', false); } } elseif (is_search()) { return sprintf(__('Search Results for %s', 'bootstrap-x'), get_search_query()); } elseif (is_404()) { return __('Not Found', 'bootstrap-x'); } else { return get_the_title(); } }