[wp-trac] [WordPress Trac] #22992: get_the_author() not working outside the post query

WordPress Trac noreply at wordpress.org
Tue Dec 18 19:55:34 UTC 2012


#22992: get_the_author() not working outside the post query
--------------------------+------------------------------
 Reporter:  alexvorn2     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Template      |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close


Comment:

 I guess it's a common concept that most of `the_*()` and `get_the_*()`
 functions only work inside the loop.

 `get_the_author_meta()` can be used outside of the loop with an arbitrary
 user ID: [[BR]]
 http://codex.wordpress.org/Function_Reference/get_the_author_meta

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22992#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list