%1$s', 'spectrum' ), get_the_date() ); } elseif ( is_month() ) { /* If this is a monthly archive */ printf( __( 'Archive for %1$s', 'spectrum' ), get_the_date('F, Y') ); } elseif ( is_year() ) { /* If this is a yearly archive */ printf( __( 'Archive for %1$s', 'spectrum' ), get_the_date('Y') ); } elseif ( is_author() ) { /* If this is an author archive */ _e( 'Author Archive', 'spectrum' ); } else { /* All other Archives */ _e( 'Blog Archives', 'spectrum' ); } ?>

'; if ( is_category() ) { // If this is a category archive printf( __( 'Sorry, but there aren’t any posts in the %s category yet.', 'spectrum' ), single_cat_title( '', false ) ); } elseif ( is_date() ) { // If this is a date archive _e( 'Sorry, but there aren’t any posts with this date.', 'spectrum' ); } elseif ( is_author() ) { // If this is an author archive $author_id = get_queried_object_id(); printf( __( 'Sorry, but there aren’t any posts by %s yet.', 'spectrum' ), esc_html( get_the_author_meta( 'display_name', $author_id ) ) ); } else { _e( 'No posts found.', 'spectrum' ); } echo '

'; endif; ?>