Posted By

shufflepath on 06/04/12


Tagged

php wordpress


Versions (?)

Get Term Info in an Array


 / Published in: PHP
 

  1. // This sets out a variable called $term - we'll use it ALOT for what we're about to do.
  2. $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
  3.  
  4. echo '<h2>' . $term->slug . '</h2>';

Report this snippet  

You need to login to post a comment.