'; echo '' . $home_title . ''; if (is_archive() && !is_tax() && !is_category() && !is_tag()) { echo '' . post_type_archive_title('', false) . ''; } elseif (is_single()) { $post_type = get_post_type(); if ($post_type != 'post') { $post_type_object = get_post_type_object($post_type); $post_type_archive = get_post_type_archive_link($post_type); echo '' . $post_type_object->labels->name . '' . $separator; } $category = get_the_category(); if (!empty($category)) { $last_category = end(array_values($category)); $cat_parents = rtrim(get_category_parents($last_category->term_id, true, $separator), $separator); echo '' . $cat_parents . ''; } echo '' . get_the_title() . ''; } elseif (is_page()) { if ($post->post_parent) { $ancestors = array_reverse(get_post_ancestors($post->ID)); foreach ($ancestors as $ancestor) { echo '' . get_the_title($ancestor) . '' . $separator; } } echo '' . get_the_title() . ''; } elseif (is_category()) { echo '' . single_cat_title('', false) . ''; } elseif (is_tag()) { echo '' . single_tag_title('', false) . ''; } elseif (is_day()) { echo '' . get_the_time('Y') . '' . $separator; echo '' . get_the_time('F') . '' . $separator; echo '' . get_the_time('d') . ''; } elseif (is_month()) { echo '' . get_the_time('Y') . '' . $separator; echo '' . get_the_time('F') . ''; } elseif (is_year()) { echo '' . get_the_time('Y') . ''; } elseif (is_author()) { $userdata = get_userdata(get_query_var('author')); echo '' . 'Author: ' . $userdata->display_name . ''; } elseif (get_query_var('paged')) { echo '' . 'Page ' . get_query_var('paged') . ''; } elseif (is_search()) { echo '' . 'Search results for: ' . get_search_query() . ''; } elseif (is_404()) { echo '' . 'Error 404' . ''; } echo ''; } ?>