ID)) { $page_opt = get_post_meta( $post->ID, '_page_options', true ); } if (is_singular()) { $top_title = $post->post_title; } elseif (is_category()) { $top_title = single_cat_title('', false); } elseif( is_tag() ) { $top_title = single_tag_title('', false); } elseif (is_day()) { $top_title = get_the_time( get_option( 'date_format' ) ); } elseif (is_month()) { $top_title = get_the_time( get_option( 'date_format' ) ); } elseif (is_year()) { $top_title = get_the_time( get_option( 'date_format' ) ); } elseif (is_author()) { $top_title = __( 'Author Archive', 'blue-paper' ); } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { $top_title = __( 'Blog Archives', 'blue-paper' ); } elseif (is_front_page()) { $top_title = __( 'Home', 'blue-paper' ); } elseif (is_home()) { $top_title = __( 'Blog', 'blue-paper' ); } elseif (is_search()) { $top_title = __( 'Search Results for', 'blue-paper' ). ' ' . get_search_query() . ''; } elseif (is_404()) { $top_title = '404'; } elseif (is_archive()) { $top_title = get_the_archive_title(); } else { $top_title = $post->post_title; } ?>