[wp-hackers] New proposed function: in_loop() to determine "in the loop" status

Kaf Oseo kaf at szub.net
Sat Jul 16 23:04:27 GMT 2005

Do want to highlight this:

Mark Jaquith wrote:
> 3) unset the global $post object.  Normally this is left filled to the 
> end of the page, and that's bloody useless.  The loop is over, this 
> transient object needs to leave.

I agree with that, but we're going to fins code out there that relies on
it. For example, the default template displays archive year/month/day in
the sidebar by using the_time(), when it really should be collecting it
from the query vars.


More information about the wp-hackers mailing list