', $after = '' ) { if( is_archive() ) { if ( is_category() ) { $title = sprintf( __( 'Category Archives: %s', 'hotel-melbourne' ), '' . single_cat_title( '', false ) . '' ); } elseif ( is_tag() ) { $title = sprintf( __( 'Tag Archives: %s', 'hotel-melbourne' ), '' . single_tag_title( '', false ) . '' ); } elseif ( is_author() ) { $title = sprintf( __( 'Author Archives: %s', 'hotel-melbourne' ), '' . get_the_author() . '' ); } elseif ( is_year() ) { $title = sprintf( __( 'Yearly Archives: %s', 'hotel-melbourne' ), get_the_date( _x( 'Y', 'yearly archives date format', 'hotel-melbourne' ) ) ); } elseif ( is_month() ) { $title = sprintf( __( 'Monthly Archives: %s', 'hotel-melbourne' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'hotel-melbourne' ) ) ); } elseif ( is_day() ) { $title = sprintf( __( 'Daily Archives: %s', 'hotel-melbourne' ), get_the_date( _x( 'F j, Y', 'daily archives date format', 'hotel-melbourne' ) ) ); } elseif ( is_post_type_archive() ) { $title = sprintf( __( 'Archives: %s', 'hotel-melbourne' ), post_type_archive_title( '', false ) ); } } elseif( is_search() ) { $title = sprintf( __( 'Search Results for : %s', 'hotel-melbourne' ), get_search_query() ); } elseif( is_404() ) { $title = sprintf( __( 'Error 404 : Page Not Found', 'hotel-melbourne' ) ); } 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 hotel_melbourne_wp_footer () { ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; } // Don't print empty markup in archives if there's only one page. if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) return; $nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation'; ?>

150) $excerpt = $excerpt.'
'.__('Read More','hotel-melbourne').''; return $excerpt; return $excerpt; } if ( ! function_exists( 'hotel_melbourne_the_custom_logo' ) ) : function hotel_melbourne_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif; ?>