Hi all,
found this nifty bit of code:
add_filter('single_template', create_function('$t', 'foreach( (array) get_the_category() as $cat ) { if ( file_exists(TEMPLATEPATH . "/single-{$cat->term_id}.php") ) return TEMPLATEPATH . "/single-{$cat->term_id}.php"; } return $t;' ));
from this site
I am wondering, since 2.9 now supports category templates via slugs, would there be some way to use term_slug in that code instead of term_id? So I guess what I'm asking is, are these global WordPress variables now?
Thanks in advance!