diff --git a/inc/template-tags.php b/inc/template-tags.php index d1fd83c..4a6bf17 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -37,7 +37,7 @@ if ( ! function_exists ( 'understrap_posted_on' ) ) { $byline = apply_filters( 'understrap_posted_by', sprintf( ' %1$s %3$s', - esc_html_x( 'by', 'post author', 'understrap' ), + $posted_on ? esc_html_x( 'by', 'post author', 'understrap' ) : esc_html_x( 'Posted by', 'post author', 'understrap' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) )