Timeline for How to get post author name by its ID inside a function?
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 4, 2011 at 3:21 | history | edited | scribu | CC BY-SA 2.5 |
yes, i'm editing my own answer :)
|
Apr 4, 2011 at 2:55 | vote | accept | Vitor Argos | ||
Apr 4, 2011 at 2:54 | comment | added | Vitor Argos | Hi Scribu, first thanks for your fast reply. I feel really stupid hehe. Anyway I did the echo using the following code: $userid = $post->post_author; $userdata = get_userdata($userid); and then $userdata->user_nicename worked perfectly here too. But thanks a lot for the information | |
Apr 4, 2011 at 2:51 | history | answered | scribu | CC BY-SA 2.5 |