What do I need to do in order to have the author name in the blog posts on my wordpress blog?
currently when I view a post it doesn’t have the author that wrote the post.
What do I need to do in order to have the author name in the blog posts on my wordpress blog?
currently when I view a post it doesn’t have the author that wrote the post.
You must be logged in to post a comment.
This will be somewhat dependent on where your
single
post view is stored, but you’d be looking to add something to the effect of:The code needs to go in
single.php
, which you’ll most likely find in your theme folder. If you are using a child theme, you might not see it; in which case, copy the file from the parent theme to your child theme folder.The WordPress function you need is the_author, so to get the author’s name, add something like this inside the loop: