user3490954 user3490954 - 20 days ago 7
CSS Question

How do I display authors on Wordpress Blog Posts?

I have a custom theme running Wordpress 4.6.1. I have a separated subdomain for my blog on the site, http://example.com/blog. None of my blog posts are showing the author.

I have tried installing various different plugins, but there seems to be a coding issue with the theme that does not automatically display the author's name on each post. My posts show the date and title, but no author name. What code do I need to utilize to display the author name?

Answer

I think you will need to add

<?php the_author(); ?> 

to your template file.

Reference the WordPress codex for guidance - https://codex.wordpress.org/Function_Reference/the_author

Hope this helps!

Comments