19 Nov, 2010
Simulate Breadcrumb Navigation with Hierarchical Custom Taxonomies
Posted by: Jennifer In: WordPress|WordPress Hacks|WordPress scripts
Code is below with comments to explain what's going on. This code would go on your taxonomy.php page… <?php //get current term info $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); //store curent term's id as first in the array $breadcrumbarray[] = $term->term_id; //transfer the term info object so we don't mess […]