diff --git a/wp-content/themes/default/archive.php b/wp-content/themes/default/archive.php index f854465dd0..62eb72f01d 100644 --- a/wp-content/themes/default/archive.php +++ b/wp-content/themes/default/archive.php @@ -53,13 +53,20 @@ get_header();
+ + if (is_category()) // If this is a category archive + printf("

Sorry, but there aren't any posts in the %s category yet.

", single_cat_title('',false)); + else if (is_date()) // If this is a date archive + echo("

Sorry, but there aren't any posts with this date.

"); + else if (is_author()) // If this is a category archive + printf("

Sorry, but there aren't any posts by %s yet.

", get_userdatabylogin(get_query_var('author_name'))->display_name); + else + echo("

No posts found.

"); + include (TEMPLATEPATH . '/searchform.php'); -

Not Found

- - - + endif; +?>