2

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.

5

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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