Using the current album or item id in a WP theme

lrivers

Joined: 2009-08-10
Posts: 1
Posted: Mon, 2009-08-10 01:46

I'd like to be able to do some stuff based on which album is being viewed. I can't figure out how to fetch the current item id in a WordPress context.

Basically, I have 2 sub albums:

root album
  \_cats
     \_various items within
  \_dogs
     \_various items within

I've got the rewrite rules writing the urls /multimedia/cats & /multimedia/dogs but I can't figure out how to know if I'm in one or the other, or to get the current url as a string, based on the rewriting and such.