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

Rob Schumann robs_wph at rs-tc.com
Thu Jan 5 00:12:03 GMT 2006


Hi Kaf,

On 03-01-2006at 13:15, kaf at szub.net (Kaf Oseo) wrote:

  >  global $wp_query;
  >  $current_cat = $wp_query->get_queried_object_id();

This is exactly what was needed and works a treat.

Thanks

Rob


More information about the wp-hackers mailing list