ok - so i'm listing categories and their sub-categories. How can i get the ID of the category that's being shown with a function? ( i know what it is in the admin )
ie /category/events/women-in-art/
women-in-art-ID = ?
any help appreciated! Dan.
|
ok - so i'm listing categories and their sub-categories. How can i get the ID of the category that's being shown with a function? ( i know what it is in the admin ) ie /category/events/women-in-art/ women-in-art-ID = ? any help appreciated! Dan. |
|||
|
|
|
How about get_query_var('cat'). I think that should get the ID of the current category. |
|||
|
|
The "official" way to get the ID of the current category is |
|||
|
|