%2$s'; $posted_on = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo '' . $posted_on . ''; // Author $author = sprintf( _x( 'by %s', 'post author', 'adaptativo' ), esc_html( get_the_author() ) ); echo ''; } // adaptativo_posted_on_home endif; // ! function_exists if ( ! function_exists( 'adaptativo_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function adaptativo_posted_on() { $time_string = ''; 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() ) ); $posted_on = sprintf( esc_html_x( 'Posted on %s', 'post date', 'adaptativo' ), '' . $time_string . '' ); //date $day = sprintf("%02d", get_the_date('j')); $month = substr(get_the_date('F'),0,3); $year = get_the_date('y'); echo '