Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter michaelhuang

    (@michaelhuang)

    Resolved by a friend in a hackish sort of way: steal the number directly from the top using something like $cat_ID = $_GET[‘cat’];

    Thread Starter michaelhuang

    (@michaelhuang)

    Nex, thanks for the reply. Unfortunately, that’s not quite what I meant.

    To clarify, I’m trying to display custom category descriptions for the category pages (that appear when you click on a particular category) by changing my sidebar.php. To do this, I need to know the ID of the current category, the one that the user clicked. The function I’ve been trying to use, get_the_category(), returns all the categories to which a certain category belongs, which doesn’t help me.

    Is there any way for me to get that number?

Viewing 2 replies - 1 through 2 (of 2 total)