if ( is_category() ) { // If this is a category archive printf("

Nema postova u kategoriji %s

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

Nema postova za ovaj datum

"); } else if ( is_author() ) { // If this is a category archive $userdata = get_userdatabylogin(get_query_var('author_name')); printf("

Nema postova od %s.

", $userdata->display_name); } else { echo("

Nema postova.

"); }