', $after = '' ) { if( is_archive() ) { if ( is_category() ) { $title = sprintf( __( 'Category Archives: %s', 'businesso' ), '' . single_cat_title( '', false ) . '' ); } elseif ( is_tag() ) { $title = sprintf( __( 'Tag Archives: %s', 'businesso' ), '' . single_tag_title( '', false ) . '' ); } elseif ( is_author() ) { $title = sprintf( __( 'Author Archives: %s', 'businesso' ), '' . get_the_author() . '' ); } elseif ( is_year() ) { $title = sprintf( __( 'Yearly Archives: %s', 'businesso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'businesso' ) ) ); } elseif ( is_month() ) { $title = sprintf( __( 'Monthly Archives: %s', 'businesso' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'businesso' ) ) ); } elseif ( is_day() ) { $title = sprintf( __( 'Daily Archives: %s', 'businesso' ), get_the_date( _x( 'F j, Y', 'daily archives date format', 'businesso' ) ) ); } elseif ( is_post_type_archive() ) { $title = sprintf( __( 'Archives: %s', 'businesso' ), post_type_archive_title( '', false ) ); } } elseif( is_search() ) { $title = sprintf( __( 'Search Results for : %s', 'businesso' ), get_search_query() ); } elseif( is_404() ) { $title = sprintf( __( 'Error 404 : Page Not Found', 'businesso' ) ); } else { echo '

'.get_the_title().'

'; } /** * Filter the archive title. * * @param string $title Archive title to be displayed. */ //$title = apply_filters( 'get_the_archive_title', $title ); if ( ! empty( $title ) ) { echo $before . $title . $after; } } endif; // Site Footer Function // Contains the closing of the #content div and all content after function businesso_wp_footer () { ?>