Fix #452 - Show title on custom post type archive template

This commit is contained in:
Ben Word
2012-05-16 23:41:41 -06:00
parent d4f425c17a
commit 129e050c7e

View File

@@ -9,6 +9,8 @@
$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
if ($term) {
echo $term->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()) {