WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to display the author (username) of the latest revision of a post from inside the loop.

I tried get_the_author(), which echoes the username and $post->post_author(), which returns the user_id, but both return the original post author and not the latest revisor.

share|improve this question
up vote 4 down vote accepted

Try the_modified_author() or get_the_modified_author(), this should give you the display name of the last user that modified the post.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.