[wp-hackers] taxonomy template, but which one i already see?

Simon Blackbourn piemanek at gmail.com
Thu Mar 17 15:15:24 UTC 2011


>
>
> on the top of this list i want to show title like "you are watching
> all events from category: [here value of taxonomy]"
>
>

I use this code (from an article by Justin Tadlock [1]):

$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var(
'taxonomy' ) );
echo $term->name;


[1]
http://justintadlock.com/archives/2009/06/04/using-custom-taxonomies-to-create-a-movie-database


More information about the wp-hackers mailing list