Getting taxonomies specific to categories

Found an answer to my own question. Still not sure how to implement it myself, but a plugin does this perfectly.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)