/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// This sets out a variable called $term - we'll use it ALOT for what we're about to do. $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo '<h2>' . $term->slug . '</h2>';
Comments
