Title: Last author who most recently modified the post
Last modified: August 19, 2016

---

# Last author who most recently modified the post

 *  Resolved [hanat](https://wordpress.org/support/users/hanat/)
 * (@hanat)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/last-author/)
 * I found code to get the last modified date to display for each post (and I also
   have the code to get the original posted date and original author). But no where
   can I find code to get the last author (the person who most recently modified
   the post).
 * Does anyone have a snippet of code I can use in the Loop to get at the last author(
   the person who made the last modification)?

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

 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/last-author/#post-988194)
 * Hi hanat,
 * I was looking for the same code and I’ve found that the following works:
 *     ```
       if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) {
           $last_user = get_userdata($last_id);
           echo $last_user->display_name;
       }
       ```
   
 * I suggest that this is incorporated into the WordPress source code as a new function
   the_modified_author()
 *  Thread Starter [hanat](https://wordpress.org/support/users/hanat/)
 * (@hanat)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/last-author/#post-988195)
 * Thanks, tomontoast! I spent many hours searching the internet for sample code.
   Your snippet worked great! Yay!
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/last-author/#post-988209)
 * It’s a pleasure. If you need any more wordpress help contact me via my website
   [http://instantsolve.net](http://instantsolve.net).
 * I’ve submitted this as an enhancement in the wordpress trac so we might see this
   as part of the wordpress core soon.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/last-author/#post-988210)
 * [http://core.trac.wordpress.org/ticket/9154](http://core.trac.wordpress.org/ticket/9154)
 *  [tomontoast](https://wordpress.org/support/users/tomontoast/)
 * (@tomontoast)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/last-author/#post-988254)
 * This function has now been added to the wordpress trunk!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/last-author/#post-988255)
 * [http://codex.wordpress.org/Template_Tags/the_modified_author](http://codex.wordpress.org/Template_Tags/the_modified_author)

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

The topic ‘Last author who most recently modified the post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/last-author/#post-988255)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
