WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. roblgs
    Member
    Posted 8 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.

    TIA

    Rob

  2. Austin Matzko
    Member
    Posted 8 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 8 years ago #

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

    http://comox.textdrive.com/pipermail/wp-hackers/2006-January/003832.html

  4. roblgs
    Member
    Posted 8 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

    Rob

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.