Here is the function I'm trying: function abyline_posted_on() { $link= esc_url( get_permalink() ); $title= esc_attr( get_the_title() ); $time= esc_attr( get_the_time() ); $dateGMT= esc_attr( get_the_date( 'c' ) ); $date= esc_html( get_the_date() ); $authorURL= esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); $author= esc_html( get_the_author() ); echo ('Posted on by '); } Here is the call I put in my content.php file