name || $post_type_obj->has_archive ) { $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() ) ); $time_string = '' . $time_string . ''; } $author_string = ''; // Show author only if the post type supports it. if ( post_type_supports( $post_type_obj->name, 'author' ) ) { $author_string = sprintf( '%2$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); } $parent_string = ''; // Show parent post only if available and if the post type is 'attachment'. if ( ! empty( $post->post_parent ) && 'attachment' === get_post_type() ) { $parent_string = sprintf( '%2$s', esc_url( get_permalink( $post->post_parent ) ), esc_html( get_the_title( $post->post_parent ) ) ); } ?>