[wp-hackers] Obtaining category id from new permalinks system

David House dmhouse at gmail.com
Wed Jan 4 19:16:00 GMT 2006


On 03/01/06, Kaf Oseo <kaf at szub.net> wrote:
> global $wp_query;
> $current_cat = $wp_query->get_queried_object_id();

Yep. this is the cleanest way.

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


More information about the wp-hackers mailing list