How to obtain the requested category with permalinks in effect? (4 posts)

  1. roblgs
    Posted 10 years ago #

    I need to gain access to the currently requested category (either by id, or nicename or whatever) for use in plugins and side bar.

    I was able to do this under WP1.5, but things appear to have changed under WP2.0 and when permalinks are running I haven't a clue how to now obtain the currently requested category as a variable.

    What's changed and how do I get access to this needed variable? Been looking half the afternoon already and it's probably staring me in the face, but I'm sure not seeing it.



  2. Austin Matzko
    Posted 10 years ago #

    In WP 2.0 a feature was added that assigns "current-cat" as a class to the current category. Is that what you're looking for?

  3. Kafkaesqui

    Posted 10 years ago #

    Rob (and anyone interested), I replied on the hackers list about this:


  4. roblgs
    Posted 10 years ago #

    Hi, and thanks, bigtime...

    Funny this is I'd tried something similar (or so I thought) earlier, but guess frustration levels were already running high by that time and patience running thin... didn't persevere with it after drawing an initial blank.

    Thanks again


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.