[wp-hackers] Finding post ID while in header

David House dmhouse at gmail.com
Wed Mar 22 08:46:45 GMT 2006


On 21/03/06, Andy Skelton <skeltoac at gmail.com> wrote:
> Don't we have API for this stuff? Something like get_queried_object()?
> When was that introduced? I've fallen into Trunk and I can't get out.

There's get_queried_object() and get_queried_object_id(), yeah. Also,
in core, we now have get_the_ID().

--
-David House, dmhouse at gmail.com, http://xmouse.ithium.net


More information about the wp-hackers mailing list