Skip to content

Commit

Permalink
Fix var $taxy for conditional taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
AdsonCicilioti committed Jul 10, 2015
1 parent 3fe67a2 commit cb97f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function odin_breadcrumbs( $homepage = '' ) {

if ( $taxonomy ) {
// Gets post terms.
$terms = get_the_terms( $post->ID, $taxonomy[0] );
$terms = get_the_terms( $post->ID, $taxy );
$term = $terms ? array_shift( $terms ) : '';
// Gets parent post terms.
$parent_term = get_term( $term->parent, $taxy );
Expand Down

0 comments on commit cb97f2c

Please sign in to comment.