name; } elseif (is_post_type_archive()) { echo get_queried_object()->labels->name; } elseif (is_day()) { printf(__('Daily Archives: %s', 'roots'), get_the_date()); } elseif (is_month()) { printf(__('Monthly Archives: %s', 'roots'), get_the_date('F Y')); } elseif (is_year()) { printf(__('Yearly Archives: %s', 'roots'), get_the_date('Y')); } elseif (is_author()) { printf(__('Author Archives: %s', 'roots'), get_the_author()); } else { single_cat_title(); } } elseif (is_search()) { printf(__('Search Results for %s', 'roots'), get_search_query()); } elseif (is_404()) { _e('Not Found', 'roots'); } else { the_title(); } } function add_filters($tags, $function) { foreach($tags as $tag) { add_filter($tag, $function); } } function is_element_empty($element) { $element = trim($element); return empty($element) ? false : true; }