name; } elseif ( is_day() ) { /* translators: %s is the day */ $title = sprintf( __( 'Day: %s', 'pinnacle' ), get_the_date() ); } elseif ( is_month() ) { /* translators: %s is the month */ $title = sprintf( __( 'Month: %s', 'pinnacle' ), get_the_date( 'F Y' ) ); } elseif ( is_year() ) { /* translators: %s is the year */ $title = sprintf( __( 'Year: %s', 'pinnacle' ), get_the_date( 'Y' ) ); } return $title; } add_filter( 'get_the_archive_title', 'pinnacle_filter_archive_title' );