Title: author name on posts
Last modified: August 21, 2016

---

# author name on posts

 *  Resolved [frusi](https://wordpress.org/support/users/frusi/)
 * (@frusi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/)
 * hi all,
 * I am having difficulties with a simple tasks. I’d like to display the author 
   name for blog posts. I tried to paste this snippet of code <?php the_author()?
   > in various places but with no results. Anyone can help me?
 * thanks a lot!

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647188)
 * Hi [@frusi](https://wordpress.org/support/users/frusi/),
 * This function must be used within [The Loop](https://codex.wordpress.org/The_Loop).
 * Where are you using it?
 * Kind Regards,
 *  Thread Starter [frusi](https://wordpress.org/support/users/frusi/)
 * (@frusi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647198)
 * Thank you so much. I copied the line in the post.php file. I dont have any php
   knowledge . Shall I put that line on the index.php?
 * thanks for helping.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647199)
 * Are you using a [child theme](http://codex.wordpress.org/Child_Themes)?
 *  Thread Starter [frusi](https://wordpress.org/support/users/frusi/)
 * (@frusi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647200)
 * no. I looked at the author.php file and it seems that the author should be displayed.
   I am lost 🙁
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647204)
 * Do not edit the theme itself. First [create a child theme for your changes](http://codex.wordpress.org/Child_Themes).
 *  [Brandon](https://wordpress.org/support/users/glassanemone/)
 * (@glassanemone)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647206)
 * Once you create a child theme, add the below line to your style sheet within 
   the child theme:
 *     ```
       .single-author .entry-meta .author {
       	display: inline;
       }
       ```
   
 *  Thread Starter [frusi](https://wordpress.org/support/users/frusi/)
 * (@frusi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647211)
 * i figured it out a way to display it but I have no idea how to have it align 
   with the rest of the content. anyone?
 * [http://www.wbruford.com/blog/](http://www.wbruford.com/blog/)
 * thanks a lot to you all for the suggestion!
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647264)
 * Hi [@frusi](https://wordpress.org/support/users/frusi/),
 * Awesome, great to see you got that resolved.
 * To align it with the rest of the content, just move the code you have added in
   between any of the following markups.
 *     ```
       <header class="entry-header">
       ....
       </header>
   
       <div class="entry-content">
       ...
       </div>
   
       <footer class="entry-meta">
       ...
       </footer>
       ```
   
 * Alternatively you can wrap it in the markup as following and aaply following 
   stylesheet on it.
 *     ```
       <div class="author-link">
       ...// Your code goes here
       </div>
       ```
   
 *     ```
       .author-link{
       margin: 0 auto;
       max-width: 1040px;
       padding: 0 376px 0 60px;
       width: 100%;
       }
       ```
   
 * Cheers,
 *  Thread Starter [frusi](https://wordpress.org/support/users/frusi/)
 * (@frusi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647350)
 * [@wpmu](https://wordpress.org/support/users/wpmu/) DEV than you so much for this!
   I got it solved! 🙂
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647352)
 * You are most welcome, if I can be of any further assistance please don’t hesitate
   to ask 🙂

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘author name on posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentythirteen/4.5/screenshot.
   png)
 * Twenty Thirteen
 * [Support Threads](https://wordpress.org/support/theme/twentythirteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentythirteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentythirteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentythirteen/reviews/)

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 10 replies
 * 4 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/author-name-on-posts/#post-4647352)
 * Status: resolved