Template tag for $byline
-
I’ve been trying for a while now to add the template tags for this to make authors show up on front-end, but I just can’t seem to figure it out? I’m using the blogito theme. What I think I need to change/one of the few places I actually see the mention of author looks like this (in template-tags.php):
$byline = sprintf( /* translators: link to author page */ esc_html_x( ' by %s', 'post author', 'blogito' ), '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
There’s also author.php to show the info on authors (like when you click on the name..) but I have even less of a clue what is going on there.
The page I need help with: [log in to see the link]
- The topic ‘Template tag for $byline’ is closed to new replies.