%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); echo $time_string; } /** * Remove archives labels */ function meteorite_category_label($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '' . get_the_author() . ''; } elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); } elseif ( is_tax() ) { $title = single_term_title( '', false ); } elseif ( is_day() ) { $title = '

' . get_the_date() . '

'; } elseif ( is_month() ) { $title = '

' . get_the_date( 'F Y' ) . '

'; } elseif ( is_year() ) { $title = '

' . get_the_date( 'Y' ) . '

'; } return $title; } add_filter('get_the_archive_title', 'meteorite_category_label'); /** * Change the excerpt length */ function meteorite_excerpt_length( $length ) { $excerpt = get_theme_mod('excerpt_length', '55'); return $excerpt; } add_filter( 'excerpt_length', 'meteorite_excerpt_length', 999 );