filter titles

This commit is contained in:
RistoNiinemets
2013-10-09 15:23:20 +03:00
parent 866d6e4b5a
commit 20f9383c4d

View File

@@ -12,9 +12,9 @@ function roots_title() {
} elseif (is_archive()) {
$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
if ($term) {
echo $term->name;
echo apply_filters('single_term_title', $term->name);
} elseif (is_post_type_archive()) {
echo get_queried_object()->labels->name;
echo apply_filters('the_title', get_queried_object()->labels->name);
} elseif (is_day()) {
printf(__('Daily Archives: %s', 'roots'), get_the_date());
} elseif (is_month()) {