Ticket #48803: 48803.1.diff
File 48803.1.diff, 1.8 KB (added by , 5 years ago) |
---|
-
wp-content/themes/twentytwenty/inc/template-tags.php
338 338 do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location ); 339 339 340 340 // Author. 341 if ( in_array( 'author', $post_meta, true ) ) {341 if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) { 342 342 343 343 $has_meta = true; 344 344 ?> -
wp-content/themes/twentytwenty/template-parts/content-cover.php
146 146 // Single bottom post meta. 147 147 twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); 148 148 149 if ( is_single() ) {149 if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { 150 150 151 151 get_template_part( 'template-parts/entry-author-bio' ); 152 152 -
wp-content/themes/twentytwenty/template-parts/content.php
57 57 // Single bottom post meta. 58 58 twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); 59 59 60 if ( is_single() ) {60 if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { 61 61 62 62 get_template_part( 'template-parts/entry-author-bio' ); 63 63