Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

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.