wordpress: get category slug from post ID
Posted on 2011-09-28
I need to add category slugs as post classes. I'm using wp-e-commerce, so these are actually product custom post types, and the custom functions used by the plugin seem to be breaking all of the solutions I've researched so far.
I have the product ID/post ID, so I need a line of code that i can put the ID into, and get back the category slug(s) for that ID.